常用CSS代码注释白痴版。

版权声明:未经允许,禁止转载,否则将追究法律责任。 https://blog.csdn.net/qq_39476250/article/details/88254059

常用CSS代码注释白痴版

margin: 0px; 内边距为0px。
padding: 0px; 外边距为0px。
width: 0px; 高度为0px。
height: 0px; 宽度为0px。
background: #000; 背景颜色为#000。
float: left; 向左浮动。
margin-left/right/top/botton: 0px; 左/右/上/下内边距为0px。
padding-left/right/top/botton: 0px; 左/右/上/下外边距为0px。
list-style: none; 去掉小黑点。
line-height: 0px; 设置行高。
color: white; 设置字体颜色为白色。
text-decoration: none; 去掉下划线。
position: absolute/relative/fixed; 绝对定位/相对定位/固定定位。
display: block; 行内元素变块元素。
cursor:default; 鼠标光标为箭头。
.clearfix::before,.clearfix::after{display: block;content: “”;clear: both;}清除浮动代码。
text-align: left/center/right; 字体居左/居中/居右。
font-size: 0px; 字体大小。
font-weight :bold/bolder; 字体加粗/更粗。

持续更新…

猜你喜欢

转载自blog.csdn.net/qq_39476250/article/details/88254059