Home  >  Article  >  Web Front-end  >  Share a summary of the usage of priority attribute !important in CSS

Share a summary of the usage of priority attribute !important in CSS

高洛峰
高洛峰Original
2017-03-10 10:31:161708browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn