传智播客详解Css3九大常用属性
摘要:在Css3的学习和实际操作中,我们经常会接触到一些常用属性,比如字体、文本、列表和背景等。下面,传智播客将对常
在Css3的学习和实际操作中,我们经常会接触到一些常用属性,比如字体、文本、列表和背景等。下面,传智播客将对常用的Css3九大属性进行详解。
1. 传智播客详解Css3九大常用属性—字体
l Font-size:字的大小;例如font-size:14px;
l Font-family: 字体; font-family:楷体;默认是宋体;
l Font-weight :bold///normal; bold 加粗 normal 正常
l Font-style:normal//italic; italic 倾斜 ; 样式是一样的
l font
font: font-style font-weight font-size font-family;
font:是否倾斜 是否加粗 字的大小 字体;
顺序只能按照上面的写
2. 传智播客详解Css3九大常用属性—文本
l Color 文本的颜色 color:red; 错误的 font-color:
l Text-decoration :下划线的设置;
l text-decoration:underline; 加下划线 text-decoration:none; 去掉下划线
l line-height :行高 line-height:24px;
l text-indent : text-indent:2em;
l letter-spacing 了解 所有的字符
l word-spacing 了解
l text-align
l
l
3. 传智播客详解Css3九大常用属性—列表
l list-style-type : none; 去掉列表前面的符号