CSS基础学习十一:选择器的优先级_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:33:35
Original
1349 people have browsed it

        在CSS基础学习的篇章中,从第四篇博客开始说选择器,到昨天基本已经说完了。今天我们总结一下,选择器作

用:告知浏览器需要设置哪个dom元素的样式。最后来说说选择器一个重要的问题,选择器的优先级。判断优先级的

方法就是尝试!!!

        一简单选择器的优先级

       简单的选择器包括我们在第四篇,第五篇,第六篇博客的元素选择器(标签选择器),类选择器和id选择器。

       我们来试验:

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>CSS</title>
Copy after login
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template