font-weight400正常800加粗
font-size:字体大小**px
font-family:字体
font可以连写,有顺序
text-indent:文本缩进(2em:自适应空两格)
text-align:文本的水平位置
line-height:文本行高
在单行文本中,如果行高等于高度,则文本居中
text-decoration:none;(文本装饰,去除a链接文本样式)
color:rgba(前面是三原色,后面是透明程度,靠近0透明,靠近1有色)
list-style-type:none去除默认样式
list-style-position:inside(控制在里面)
背景图片:background-image(默认占满)
不占满:background-repeat:no-repeat
背景定位:background-position:left top
背景固定·:background-attachment:fixed
jian
h标签:独占一行
span标签:不独占一行
块元素:默认独占一行,设置宽高,设置内外边距div,h1,p,;li
行内元素:无法直接设置宽高,内外间距(display:block;将其他元素转化为行内块元素)
text-align:center;(水平居中)
border-width或style或color(控制边框)
border-radius(控制边框弧线)
solid(边框实线)
cellspacing="0"(表格间距为0,用在table标签里)
cursor(改变文本域鼠标样式)
z-index:1;(优先显示,默认是0)
position:relative;(相对定位,默认相对于浏览器)
position:absoulute;(绝对定位)
focus CSS伪类表示获得焦点的元素(如表单输入)。当用户点击或轻触一个元素或使用键盘的Tap键选择它时,它就会被触发。
opacity属性指定了一个元素的不透明度。