This article shares a summary of the usage of the priority attribute !important in CSS
!important can only be recognized by Ie7.0 and firefox, but Ie6.0 cannot successfully apply .!important to improve the priority. The following is Its usage is summarized
The code is as follows:
无标题文档
这一行末使用important。class的优先级小于id的优先级。IE7是红色,firefox是蓝色。
这一行使用了important
在不同的浏览器下,这行字的色应该不同!IE7,Firefox是红色。IE6是蓝色
The above is the detailed content of Share a summary of the usage of priority attribute !important in CSS. For more information, please follow other related articles on the PHP Chinese website!