码迷,mamicode.com
首页 > 其他好文 > 详细

!important定义为最高级不可替代

时间:2017-03-06 21:20:09      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:div   html   charset   set   size   har   高级   white   htm   

 1 <!DOCTYPE html>
 2 /*!important定义为最高级不可替代*/
 3 <html lang="en">
 4 <head>
 5     <meta charset="UTF-8">
 6     <title>Title</title>
 7     <style>
 8         .c1{
 9             font-size: 32px;
10             background-color: red;
11             color: white !important;/*!important定义为最高级不可替代*/
12         }
13         .c2{
14             color: aqua;
15         }
16     </style>
17 </head>
18 <body>
19     <div class="c1 c2">gsdg</div>
20 </body>
21 </html>

 

!important定义为最高级不可替代

标签:div   html   charset   set   size   har   高级   white   htm   

原文地址:http://www.cnblogs.com/shiluoliming/p/6511750.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!