自制CSS面试题

1. 标题是什么颜色?

h1 { 
    color: red; 
}
h1 { 
    color: blue; 
}

 <h1>This is my heading.</h1>

2.  标题是什么颜色?

.main-heading { 
color: red; 
}

h1 { 
color: blue; 
}

 <h1 class="main-heading">This is my heading.</h1>

4. 哪些属性可以控制CSS继承 ?

5. CSS属性 all 的作用是?

6. CSS的层级关系包含哪三层?

7. !important  的 作用是什么?

参考资料:

参考 答案  https://www.cnblogs.com/andrew-chen/p/12191245.html

原文地址:https://www.cnblogs.com/andrew-chen/p/12125622.html