现在的位置: 首页 > 综合 > 正文

CSS for Windows Mobile ,wrap and Container

2011年04月28日 ⁄ 综合 ⁄ 共 743字 ⁄ 字号 评论关闭
1
<link rel="stylesheet" type="text/css" media="handheld" href="css/handheld.css" />
2
<link rel="stylesheet" type="text/css" media="Screen" href="css/master.css" />

This method works for me. Good handhelds and phones will recognize media="handheld", but not sure all do. I'm always looking for other suggestions to get decent and readable results in handhelds, but only test in PPC and my Motorola phone. I have not used phone emulators in a while, but I assume they're still out there.

wrap:
1、NotSet   预设值。如果是NotSet,则控制项是否换行是继承自控制的样式,
            或如果未定义样式,则是继承自控制项的副控制项。
2、Wrap     在荧幕或容器的边界将文字换行。
3、NoWrap   文字不会自动换行。

When i debuged my mobile page, i found a mistake when i used "DataBinder.Eval(Container.DataItem,"Column'sName")",and it would be ok if i correct it into "DataBinder.Eval(((MobelListItem)Container).DataItem,"Colum'sName")".

抱歉!评论已关闭.