在寫JS時....font的語法 CSS 跟 JS 不太相同
http://topic.csdn.net/t/20020527/14/756232.html
Style Object Property Style Sheet attribute | |||||
JS | CSS | ||||
background background | |||||
backgroundAttachment background-attachment | |||||
backgroundColor background-color | |||||
backgroundImage background-image | |||||
backgroundPostion background-position | |||||
backgroundRepeat background-repeat | |||||
border border | |||||
borderBottom border-bottom | |||||
borderBottomColor border-bottom-color | |||||
borderBottomStyle border-bottom-style | |||||
borderBottomWidth border-bottom-width | |||||
borderColor border-color | |||||
borderLeft border-left | |||||
borderLeftColor border-left-color | |||||
borderLeftStyle border-left-style | |||||
borderLeftWidth border-left-width | |||||
borderRight border-right | |||||
borderRightColor border-right-color | |||||
borderRightStyle border-right-style | |||||
borderRightWidth border-right-width | |||||
borderStyle border-style | |||||
borderTop border-top | |||||
borderTopColor border-top-color | |||||
borderTopStyle border-top-style | |||||
borderTopWidth border-top-width | |||||
borderWidth border-width | |||||
clear clear | |||||
clip clip | |||||
color color | |||||
cursor cursor | |||||
display display | |||||
filter filter | |||||
font font | |||||
fontFamily font-family | |||||
fontSize font-size | |||||
fontStyle font-style | |||||
fontVariant font-variant | |||||
fontWeight font-weight | |||||
height height | |||||
left left | |||||
letterSpacing letter-spacing | |||||
lineHeight line-height | |||||
listStyle list-style | |||||
listStyleImage list-style-image | |||||
listStylePosition list-style-position | |||||
listStyleType list-style-type | |||||
margin margin | |||||
marginBottom margin-bottom | |||||
marginLeft margin-left | |||||
marginRight margin-right | |||||
marginTop margin-top | |||||
overflow overflow | |||||
paddingBottom padding-bottom | |||||
paddingLeft padding-left | |||||
paddingRight padding-right | |||||
paddingTop padding-top | |||||
pageBreakAfter page-break-after | |||||
pageBreakBefore page-break-before | |||||
position position | |||||
styleFloat float (特别) | |||||
textAlign text-align | |||||
textDecoration text-decoration | |||||
textDecorationBlink text-decoration(特别) | |||||
textDecorationLineThrough text-decoration | |||||
textDecorationNone text-decoration | |||||
textDecorationOverline text-decoration | |||||
textDecorationUnderline text-decoration | |||||
textIndent text-indent | |||||
textTransform text-transform | |||||
top top | |||||
verticalAlign vertical-align | |||||
visibility visibility | |||||
width width | |||||
zIndex z-index |
全站熱搜