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

高洛峰
Release: 2017-03-10 10:31:16
Original
1755 people have browsed it

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是蓝色

Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!