JS可以控制样式的名称写法一览
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书写原生ajax,JS 原生ajax写法
- 关于JS全局变量问题
- 2021了,真的不要再说 Node.js 是一门编程语言了「建议收藏」
- Uniapp、Html5plus、Native.js开发记录
- JavaScript日期处理不再难!Day.js带你飞!
- JS控制浏览器全屏详解编程语言
- JS用户界面事件(UI事件)
- 创建JS文件:在Linux下实现自动化任务(linux创建js文件)
- 用SQL Server和JS实现数据库管理技术(sqlserver.js)
- 使用JS控制Oracle数据库的更新(js控制oracle更新)
- JS实时链接Oracle让数据库访问更便捷(js实时连接oracle)
- 用js控制css的不错的方法
- 定单管理上JS表格排序
- js实现DIV的一些简单控制
- JS控制对象移动效果
- 编写跨浏览器的javascript代码必备[js多浏览器兼容写法]
- JS俄罗斯方块完美注释版代码
- 用js脚本控制asp.net下treeview的NodeCheck的实现代码
- JS函数验证总结(方便js客户端输入验证)
- js实现的美女瀑布流效果代码
- js延迟加载改变JS的位置加快网页加载速度
- js工具方法弹出蒙版
- js控制页面控件隐藏显示的两种方法介绍
- js上下左右键控制焦点(示例代码)
- JS获取select的value和text值的简单实例
- js二维数组定义和初始化的三种方法总结