×
Namespaces

Variants
Actions

Ovi browser对CSS的支持

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
max.chen 在 15 May 2011 创建
最后由 hamishwillee 在 09 May 2013 编辑

目前,Ovi browser支持下表中的CSS属性和取值。表中的属性仅代表兼容性,其中部分元素并不与W3C的定义相同,Ovi browser可能会将它们转换成其他等价的方式。另外,部分表中的属性虽然是Series 40 web apps所支持的,但是我们并不推荐使用,具体的情况请参考Series 40 web apps: Best practices guide(英文)


CSS属性 缺省值
background See following background elements


background-color [ hex-color|transparent ] #FFFFFF (white) for <body>;
gray gradient for <input type=button>, <input type=submit>, and <input type=reset> elements; #FFFFFF (white) for other active <input> elements #E8E8E8 (gray) for other inactive <input> elements ; transparent for other elements


background-image url None


background-position [ x-pixels | x-percentage ] [ y-pixels | y-percentage ] 0PX 0PX


background-repeat [ repeat | repeat-x | repeat-y | no-repeat ] repeat


border See following border elements


border-color [ hex-color | transparent ] #ADAFB0 (gray) if <input> border
#000000 (black) for other borders


border-style [ none | dotted | dashed | solid ] none


border-top
border-bottom
border-left
border-right


border-top-color
border-right-color
border-bottom-color
border-left-color
[ hex-color | transparent ] border-color, if specified
otherwise: #ADAFB0 (gray) if <input> border #000000 (black) for other borders


border-top-style
border-right-style
border-bottom-style
border-left-style
[ none | dotted | dashed | solid ] border-style, if specified
otherwise: none


border-top-width
border-right-width
border-bottom-width
border-left-width
pixel-width border-width, if specified
otherwise: 3PX


border-width pixel-width 3PX


color hex-color #0000FF (blue) for text in links
#000000 (black) for other text


direction [ ltr | rtl ] ltr
display [ inline | block | none ] Depends on the HTML element. See HTML 4 default style sheet (http://www.w3.org/TR/CSS21/sample.html).
font See following font elements
font-size [ small | medium | large ] small
font-style [ normal | italic ] normal
font-weight [ normal | bold ] normal


height [ pixel-height |percent-height ] auto


list-style See following list-style elements


list-style-type [ disc | circle | square | none ] disc


margin [ pixel-width |percent-width | auto ] 0PX


margin-top
margin-right
margin-bottom
margin-left
[ pixel-width |percent-width | auto ] margin, if specified
otherwise: 0PX


min-height [ pixel-height |percent-height ] 0PX


outline [ solid | none ] solid


outline-style [none | solid | dashed | dotted] none


overflow [ visible | hidden ] visible


padding [ pixel-width |percent-width ] 0PX


padding-top
padding-right
padding-bottom
padding-left
[ pixel-width |percent-width ] padding, if specified
otherwise: 0PX


text-align [ left | right | center ] left if direction is LTR
right if direction is RTL


text-decoration [ none | underline ] underline for text in links
none for other text


text-overflow-mode [ clip | ellipsis ] clip


text-transform [ clip | ellipsis ] clip


text-transform [capitalize | uppercase | lowercase | none] none


transition See –webkit-transition below


transition-delay See –webkit-transition-delay below


transition-duration See –webkit-transition-duration below


transition-property See –webkit-transition-property below


transition-timing-function See –webkit-transition-timing-function below


unicode-bidi [ normal | embed | bidi-override ] normal


vertical-align [ baseline | top | middle | bottom ] baseline


white-space [ normal | nowrap ] normal


width [ pixel-width |percent-width ] auto


-webkit-transition See following –webkit-transition elements


-webkit-transition-delay delay-seconds 0S


-webkit-transition-duration duration-seconds 0S


-webkit-transition-property [ width | height | margin-left | margin-top | none ] none


-webkit-transition-timing-function linear linear


相关链接

This page was last modified on 9 May 2013, at 13:21.
99 page views in the last 30 days.
×