html的选择器:就是选择标签的过程。
分为4中:类选择器,ID选择器,属性选择器,派生选择器
head:
<style type="text/css">
1.red{/*类选择器*/
color=red;
}
2 #miss{
color=green;
font-size=50px;
}
</style>
body:
1类选择器:这一类的都使用这种样式,例如div都使用.red这种样式exp:<div class="red">这是一个类选择器</div>
2ID选择器;exp:<div class="miss">这是ID选择器</div>
3属性选择器
<p title="t">属性选择器</p>
<h1 titles="te">Hello 属性选择器!</h1>
4派生选择器:
exp:
<p><strong>派生选择器</strong></p>
<li><strong>Hello 派生选择器!</strong></li>
<hr/>