1.通配符选择器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{ /**代表所有标签的意思 使用较少 通配符选择器*/
color: pink;
}
</style>
</head>
<body>
<div>我是文字</div>
<P>我是文字</P>
<span>我是文字</span>
<table>我是文字</table>
</body>
</html>
2.字体连写
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
h1{
/* font-size: 25px;
font-family:"宋体";
font-weight: 400;*/
}
h1{
font:400 25px "宋体";
}
</style> <!--字体连写是有顺序的 font:font-style,font-weight,font-size/line-hight font-family;
font-size 和font-family不能省-->
</head>
<body>
<h1>字体连写是有顺序的</h1>
<!--line-height是行间距-->
</body>
</html>