选择器:使界面更整洁
标签选择器
类选择器
示例(sublime环境)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.orange{
/*声明类样式*/
color: orange;
}
.bule{
color: blue;
}
</style>
</head>
<body>
<div class="orange ">鸣人</div>
<div class="bule ">佐助</div>
<div>卡卡西</div>
</body>
</html>
多类名选择器
多类名选择器示例(sublime环境)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.font20{
font-size: 20px;
}
.font14 {
font-size: 14px;
}
.pink {
color: pink;
}
&l