搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  Selectors, Specificity, and the Cascade.pdf
资料下载链接地址: https://bbs.pinggu.org/a-2183688.html
附件大小:
Selectors, Specificity, and the Cascade
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
1. Selectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Basic Style Rules 1
Element Selectors 2
Declarations and Keywords 3
Grouping 4
Grouping Selectors 5
Grouping Declarations 6
Grouping Everything 7
Class and ID Selectors 9
Class Selectors 9
Multiple Classes 11
ID Selectors 13
Deciding Between Class and ID 14
Attribute Selectors 15
Simple Attribute Selectors 15
Selection Based on Exact Attribute Value 16
Selection Based on Partial Attribute Values 18
A Particular Attribute Selection Type 21
Using Document Structure 22
Understanding the Parent-Child Relationship 22
Descendant Selectors 24
Selecting Children 27
Selecting Adjacent Sibling Elements 28
Selecting Following Siblings 30
Pseudo-Class Selectors 31
Combining Pseudo-Classes 31
Structural Pseudo-Classes 31
Dynamic Pseudo-Classes 43
UI State Pseudo-Classes 47
The :target Pseudo-Class 49
iii
The :lang Pseudo-Class 50
The Negation Pseudo-Class 51
Pseudo-Element Selectors 53
Styling the First Letter 54
Styling the First Line 55
Restrictions on ::first-letter and ::first-line 55
Styling (Or Creating) Content Before and After Elements 56
Summary 56
2. Specificity and the Cascade. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
Specificity 59
Declarations and Specificity 61
Universal Selector Specificity 62
ID and Attribute Selector Specificity 63
Inline Style Specificity 63
Importance 64
Inheritance 65
The Cascade 68
Sorting by Weight and Origin 68
Sorting by Specificity 69
Sorting by Order 70
Non-CSS Presentational Hints 72
Summary 73
iv |



    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2026-1-12 05:17