css 书写规范
作者:
无名程序猿 | 来源:发表于
2019-05-20 11:27 被阅读0次
- css书写顺序规范
定位、盒模型、颜色、文本、其他
- 示例代码
.selector {
/* Positioning */
position: absolute;
z-index: 10;
top: 0;
right: 0;
/* Display & Box Model */
display: inline-block;
overflow: hidden;
box-sizing: border-box;
width: 100px;
height: 100px;
padding: 10px;
border: 10px solid #333;
margin: 10px;
/* Color */
background: #000;
color: #fff
/* Text */
font-family: sans-serif;
font-size: 16px;
line-height: 1.4;
text-align: right;
/* Other */
cursor: pointer;
}
本文标题:css 书写规范
本文链接:https://www.haomeiwen.com/subject/iynhzqtx.html
网友评论