Style属性在脚本中的表示...

linhaibo 2002-05-27 02:47:44
Style Object Property Style Sheet attribute

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
...全文
77 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
linhaibo 2002-05-27
  • 打赏
  • 举报
回复
嘿嘿...这个效率很明显,常用些.
qiushuiwuhen 2002-05-27
  • 打赏
  • 举报
回复
你不是不讲究效率的么?嘿嘿
linhaibo 2002-05-27
  • 打赏
  • 举报
回复
书上说,直接修改样式,比更改 className 速度快很多...
jsidiot 2002-05-27
  • 打赏
  • 举报
回复
这个问题我哪天问过孟子了
本来就不同的阿

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧