一天搞定CSS:字体font--04

xiaoxiao2021-02-28  77

1.字体体系


2.字体各属性取值

说明:

每一个属性后面的分支是属性值,以及对属性值的说明。 比如font-weight- - - -有两个取值:bold,normal


3.演示代码

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /*font 文字 font-weight 文字着重 font-style 文字倾斜 font-size 文字大小(一般都为偶数) line-height 文字行高 font-family 字体(中文默认是宋体)*/ div{ /*font--set*/ font-weight: bold; font-style: italic; font-family: "微软雅黑"; line-height: 50px; font-size: 30px; /*复合样式*/ /*font:bold italic 30px/50px "微软雅黑";*/ } </style> </head> <body> <div id=""> 我在学习H5教程,我会成为前端大神的! </div> </body> </html>
转载请注明原文地址: https://www.6miu.com/read-56461.html

最新回复(0)