手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >JS可以控制样式的名称写法一览
JS可以控制样式的名称写法一览
摘要:CSS语法(不区分大小写)JavaScript语法(区分大小写)borderborderborder-bottomborderBottomb...

CSS语法 (不区分大小写) JavaScript语法 (区分大小写)

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语法 (不区分大小写) JavaScript语法 (区分大小写)

background background

background-attachment backgroundAttachment

background-color backgroundColor

background-image backgroundImage

background-position backgroundPosition

background-repeat backgroundRepeat

color color

样式标签和属性对照

CSS语法 (不区分大小写) JavaScript语法 (区分大小写)

display display

list-style-type listStyleType

list-style-image listStyleImage

list-style-position listStylePosition

list-style listStyle

white-space whiteSpace

文字样式标签和属性对照

CSS语法 (不区分大小写) JavaScript语法 (区分大小写)

font font

font-family fontFamily

font-size fontSize

font-style fontStyle

font-variant fontVariant

font-weight fontWeight

文本标签和属性对照

CSS语法 (不区分大小写) JavaScript语法 (区分大小写)

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

【JS可以控制样式的名称写法一览】相关文章:

JS实现1000以内被3或5整除的数字之和

JavaScript实现带标题的图片轮播特效

png在IE6 下无法透明的解决方法汇总

JS实现跳转代码:多域名指向同一空间

你的编程语言可以这样做吗?

JavaScript正则表达式中的global属性的使用

JS动画效果打开、关闭层的实现方法

AngularJS中$interval的用法详解

JS动态增删表格行的方法

JavaScript 正则表达式中global模式的特性

精品推荐
分类导航