Home >Web Front-end >HTML Tutorial >Priority of CSS styles_html/css_WEB-ITnose

Priority of CSS styles_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:52:061197browse

------------------------------------------------------------------------           |      最次要          |        <---->        |    最重要------------------------------------------------------------------------样式生成于: |  浏览器的默认样式表    |  用户自定义的样式表    |  页面开发人员样式表------------------------------------------------------------------------样式生成于: |  外部样式表           |  内部样式表           |  内联样式表------------------------------------------------------------------------样式生成于: |  元素选择器           |  类选择器             |  ID选择器------------------------------------------------------------------------当样式冲突时, CSS中允许使用!important指明样式具有更高的优先级

p{color:blue; !important}


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