CSS基础
常用文本样式
color: blue;
background-color: red;
font-weight: bold;
/* 加粗 */
font-weight: normal;
font-style: italic;
/* 倾斜 */
text-decoration: underline;
/* 下划线 */
text-decoration: line-through;
/* 删除线 */
样式的继承性(就近原则)
自己定义字体
-
字体文件根据操作系统和浏览器不同,有eot、woff2、woff、ttf、svg文件格式,需要同时有这5种文件。
-
当我们拥有字体文件之后,就可以用@font-face定义字体。
-
阿里巴巴提供了普惠字体,使用阿里巴巴普惠字体省去了下载字体的麻烦。
今日总结:没什么要讲的干就完。