方法:
document.getelementbyid(xx).style.xxx中的所有屬性是什么
盒子標(biāo)簽和屬性對(duì)照
css語(yǔ)法(不區(qū)分大小寫(xiě)) javascript語(yǔ)法(區(qū)分大小寫(xiě))
border border
border-bottom borderbottom
border-bottom-color borderbottomcolor
border-bottom-style borderbottomstyle
border-bottom-width borderbottomwidth
border-color bordercolor
border-left borderleft
border-left-color borderleftcolor
border-left-style borderleftstyle
border-left-width borderleftwidth
border-right borderright
border-right-color borderrightcolor
border-right-style borderrightstyle
border-right-width borderrightwidth
border-style borderstyle
border-top bordertop
border-top-color bordertopcolor
border-top-style bordertopstyle
border-top-width bordertopwidth
border-width borderwidth
clear clear
float floatstyle
margin margin
margin-bottom marginbottom
margin-left marginleft
margin-right marginright
margin-top margintop
padding padding
padding-bottom paddingbottom
padding-left paddingleft
padding-right paddingright
padding-top paddingtop
顏色和背景標(biāo)簽和屬性對(duì)照
css 語(yǔ)法(不區(qū)分大小寫(xiě)) javascript 語(yǔ)法(區(qū)分大小寫(xiě))
background background
background-attachment backgroundattachment
background-color backgroundcolor
background-image backgroundimage
background-position backgroundposition
background-repeat backgroundrepeat
color color
樣式標(biāo)簽和屬性對(duì)照
css語(yǔ)法(不區(qū)分大小寫(xiě)) javascript 語(yǔ)法(區(qū)分大小寫(xiě))
display display
list-style-type liststyletype
list-style-image liststyleimage
list-style-position liststyleposition
list-style liststyle
white-space whitespace
文字樣式標(biāo)簽和屬性對(duì)照
css 語(yǔ)法(不區(qū)分大小寫(xiě)) javascript 語(yǔ)法(區(qū)分大小寫(xiě))
font font
font-family fontfamily
font-size fontsize
font-style fontstyle
font-variant fontvariant
font-weight fontweight
文本標(biāo)簽和屬性對(duì)照
css 語(yǔ)法(不區(qū)分大小寫(xiě)) javascript 語(yǔ)法(區(qū)分大小寫(xiě))
letter-spacing letterspacing
line-break linebreak
line-height lineheight
text-align textalign
text-decoration textdecoration
text-indent textindent
text-justify textjustify
text-transform texttransform
vertical-align verticalalign