博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JS与CSS属性对照
阅读量:6990 次
发布时间:2019-06-27

本文共 1907 字,大约阅读时间需要 6 分钟。

hot3.png

经常在写js时需要调用dom对象的css属性。
盒子标签和属性对照
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
本文转载自:

转载于:https://my.oschina.net/Claire0705/blog/61716

你可能感兴趣的文章
为什么你那么努力,还是不能升职加薪?
查看>>
苹果系统从零开始--MAC OS X 教程4-Expose,Space
查看>>
2010款MacBook Pro SSD、内存升级
查看>>
解密穿戴式设备中的计步算法
查看>>
QT4实现语法高亮发现其正则表达式不够完整
查看>>
体验JBOOT(四)-- jboot-admin 篇
查看>>
Spring 下基于自定义注解拦截方法调用
查看>>
Eclipse常用快捷键
查看>>
fastdfs + nginx 搭建分布式文件系统(单机模式)
查看>>
PDF文件格式转换器下载免费版
查看>>
详解如何使git将项目上传到github
查看>>
sql多表连接,分组例子
查看>>
Rainbond v5.1.2发布,微服务架构应用便捷管理和交付
查看>>
新浪博客地址
查看>>
JAVA折腾微信公众平台(Token验证)
查看>>
疯狂Spring Cloud连载(28)开发消息微服务
查看>>
提高HTML5 canvas性能的几种方法!
查看>>
golang教程
查看>>
Redis 存储字符串和对象
查看>>
android样式开发遇到的小坑
查看>>