@ html表格边距大小怎么调?
那个应该是ul标签的margin-top,在css里面把它设为0就好了。类似这样,选择器根据情况修改 <style> ul { margin-top: 0; } </style>
@ 元素类名与类名元素有什么区别?
元素.类名 例如:p.abc{ color:red; } 类名是abc的标签p的颜色是red 类名.元素 .abc p{ color:red; } 表示:类名abc的任何标签旗下的p标签颜色是red
@ css怎么设置class的优先级?
样式权值设定
1. 内联样式表的权值最高 1000;
2. ID 选择器的权值为 100
3. Class 类选择器的权值为 10
4. HTML 标签选择器的权值为 1
5 继承样式的权值为0.1
举例
< class a>
< class b>
<class c >
直接用 .c(类)选择器 它的权值只有10 ,
用 .a .b .c来选择,则它的权值为10+10+10。