<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>css选择器</title>
<style type="text/css">
/*
选择器{
属性:值;
属性:值;
}*/
/*
1.选择器:标签选择器、标签名,会选中当前页面中所有的标签
2.类选择器:在开始标签中用class属性添加类名,在样式中用“.类名”选择对应类的标签
3.ID选择器:在开始标签中用id属性添加id名字,在样式中用“#id名”选中对应的标签
*/
p{
color: hotpink;
font-size: 36px
}
.wyz{
color:khaki;
font-size: 24px
}
#lj{
color:gold;
font-size: 28px;
}
</style>
</head>
<body>
<h3 id="lj">嘉年华</h3>
<p>而非护额回复</p>
<p>我而后覅的说</p>
<p class="wyz">很大的核武不得不</p>
</body>
</html>