CSS和JS標簽style屬性對照表(方便js開發(fā)的朋友)
更新時間:2010年11月11日 14:19:49 作者:
CSS和JS標簽style屬性對照表(方便js開發(fā)的朋友),需要的朋友可以收藏下。
| 盒子標簽和屬性對照 | |
| CSS語法(不區(qū)分大小寫) | JavaScript語法(區(qū)分大小寫) |
| 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 |
| 顏色和背景標簽和屬性對照 | |
| CSS 語法(不區(qū)分大小寫) | JavaScript 語法(區(qū)分大小寫) |
| background | background |
| background-attachment | backgroundAttachment |
| background-color | backgroundColor |
| background-image | backgroundImage |
| background-position | backgroundPosition |
| background-repeat | backgroundRepeat |
| color | color |
| 樣式標簽和屬性對照 | |
| CSS語法(不區(qū)分大小寫) | JavaScript 語法(區(qū)分大小寫) |
| display | display |
| list-style-type | listStyleType |
| list-style-image | listStyleImage |
| list-style-position | listStylePosition |
| list-style | listStyle |
| white-space | whiteSpace |
| 文字樣式標簽和屬性對照 | |
| CSS 語法(不區(qū)分大小寫) | JavaScript 語法(區(qū)分大小寫) |
| font | font |
| font-family | fontFamily |
| font-size | fontSize |
| font-style | fontStyle |
| font-variant | fontVariant |
| font-weight | fontWeight |
| 文本標簽和屬性對照 | |
| CSS 語法(不區(qū)分大小寫) | JavaScript 語法(區(qū)分大小寫) |
| 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 |
您可能感興趣的文章:
相關文章
axios?POST提交數(shù)據(jù)的三種請求方式寫法示例
這篇文章主要介紹了axios?POST提交數(shù)據(jù)的三種請求方式寫法示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-09-09
使用webpack搭建pixi.js開發(fā)環(huán)境
這篇文章主要介紹了使用webpack搭建pixi.js開發(fā)環(huán)境,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-02-02
你必須知道的Javascript知識點之"深入理解作用域鏈"的介紹
本篇文章小編為大家介紹,你必須知道的Javascript知識點之"深入理解作用域鏈"的介紹。需要的朋友參考下2013-04-04
contains和compareDocumentPosition 方法來確定是否HTML節(jié)點間的關系
一個很棒的 blog 文章,是 PPK 兩年前寫的,文章中解釋了 contains() 和 compareDocumentPosition() 方法運行在他們各自的瀏覽器上。2011-09-09

