1,常用的HTML标签

2,css常用选择器
1.1 元素选择器
p{ height:50px;}
<p> hello word</p>
注:p标签要慎用
1.2class选择器
.a{color:pink}
<p class="a">hello word</p>
特点:
1.可以给多个标签相同的class名
2.可以给一个标签多个class名
1.3id选择器
#+idName{}
<p id=""></p>
注:一般不使用id标签
特点:
每个id名都是唯一的
3,盒子模型
div{}
<div></div>


4,样式重置
*{margin:0;padding:0}
网友评论