JavaScript CSS Style属性对照表

盒子标签和属性对照

XML/HTML代码
  1. CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)    
  2. border   border    
  3. border-bottom   borderBottom    
  4. border-bottom-color   borderBottomColor    
  5. border-bottom-style   borderBottomStyle    
  6. border-bottom-width   borderBottomWidth    
  7. border-color   borderColor    
  8. border-left   borderLeft    
  9. border-left-color   borderLeftColor    
  10. border-left-style   borderLeftStyle    
  11. border-left-width   borderLeftWidth    
  12. border-right   borderRight    
  13. border-right-color   borderRightColor    
  14. border-right-style   borderRightStyle    
  15. border-right-width   borderRightWidth    
  16. border-style   borderStyle    
  17. border-top   borderTop    
  18. border-top-color   borderTopColor    
  19. border-top-style   borderTopStyle    
  20. border-top-width   borderTopWidth    
  21. border-width   borderWidth    
  22. clear   clear    
  23. float   floatStyle    
  24. margin   margin    
  25. margin-bottom   marginBottom    
  26. margin-left   marginLeft    
  27. margin-right   marginRight    
  28. margin-top   marginTop    
  29. padding   padding    
  30. padding-bottom   paddingBottom    
  31. padding-left   paddingLeft    
  32. padding-right   paddingRight    
  33. padding-top   paddingTop   

颜色和背景标签和属性对照

XML/HTML代码
  1. CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)    
  2. background   background    
  3. background-attachment   backgroundAttachment    
  4. background-color   backgroundColor    
  5. background-image   backgroundImage    
  6. background-position   backgroundPosition    
  7. background-repeat   backgroundRepeat    
  8. color   color   

样式标签和属性对照 

XML/HTML代码
  1. CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)    
  2. display   display    
  3. list-style-type   listStyleType    
  4. list-style-image   listStyleImage    
  5. list-style-position   listStylePosition    
  6. list-style   listStyle    
  7. white-space   whiteSpace   

文字样式标签和属性对照 

XML/HTML代码
  1. CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)    
  2. font   font    
  3. font-family   fontFamily    
  4. font-size   fontSize    
  5. font-style   fontStyle    
  6. font-variant   fontVariant    
  7. font-weight   fontWeight   

文本标签和属性对照 

XML/HTML代码
  1. CSS语法 (不区分大小写)   JavaScript语法 (区分大小写)    
  2. letter-spacing   letterSpacing    
  3. line-break   lineBreak    
  4. line-height   lineHeight    
  5. text-align   textAlign    
  6. text-decoration   textDecoration    
  7. text-indent   textIndent    
  8. text-justify   textJustify    
  9. text-transform   textTransform    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值