当前位置:网站首页>Common selectors are
Common selectors are
2022-07-07 23:58:00 【Xiao Zhang, run quickly.】
Common selectors are :
1、 tag chooser ;2、 Class selectors ;3、ID Selectors ;4、 Global selector ;5、 Combination selector ;6、 Inheritance selector ;7、 Pseudo class selector .
The first is tag chooser , It also becomes an element selector . The basic form of tag selector is as follows :tagName{property:value}, among tagName It's the label name ,property yes css Properties of .
The second is Class selectors , Class selectors are used to define the same rendering for a series of tags , The common grammar is .classValue{property:value}. among classValue Is the name of the class selector , This is from css The author names himself .
The third is ID Selectors ,ID A selector defines a particular html Elements , Only one tag or element in a web page uses a ID The attribute value .ID The basic syntax format of the selector is as follows :
#idValue{property:value}. among idValue yes ID The name of the selector , Can be CSS The writer writes it himself .
The fourth is Global selector , The global selector is for all htmlz Elements work . The grammar format is : *{propery:value}. among “*” Indicates that it works on all elements ,property Express css Properties of ,value Represents the property value .
The fifth is Combination selector , Is to match multiple selectors , It can form a compound selector , Also known as composite selector .
The sixth is Inheritance selector , The rule of inheritance is that child tags are undefined , The selector inheriting the parent tag ; When the child tag repeatedly defines the declaration of the parent tag , Execute the sub tag selector .
Seventh hour Pseudo class selector , Pseudo class selectors are mainly used in <a> On the label , It consists of four states : No access to the link (link)、 Visited link (visited)、 Activate Links (active)、 Mouse over the connection (hover).
边栏推荐
- 每日刷题记录 (十六)
- 【编程题】【Scratch二级】2019.09 制作蝙蝠冲关游戏
- Pigsty:开箱即用的数据库发行版
- Open display PDF file in web page
- Using Google test in QT
- Basic learning of SQL Server -- creating databases and tables with code
- HDU - 1260 Tickets(线性DP)
- Rectification characteristics of fast recovery diode
- 光流传感器初步测试:GL9306
- Robomaster visual tutorial (0) Introduction
猜你喜欢
快速回复二极管整流特性
Using Google test in QT
神奇快速幂
Magic fast power
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
串联二极管,提高耐压
[the most detailed in history] statistical description of overdue days in credit
One click installation with fishros in blue bridge ROS
Data Lake (XV): spark and iceberg integrate write operations
Seven years' experience of a test engineer -- to you who walk alone all the way (don't give up)
随机推荐
Kubectl's handy command line tool: Oh my Zsh tips and tricks
Traduction gratuite en un clic de plus de 300 pages de documents PDF
C - minute number V3
Pigsty: out of the box database distribution
如何衡量产品是否“刚需、高频、痛点”
关于组织2021-2022全国青少年电子信息智能创新大赛西南赛区(四川)复赛的通知
One click installation with fishros in blue bridge ROS
ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
Tools for debugging makefiles - tool for debugging makefiles
Orthodontic precautions (continuously updated)
[programming problem] [scratch Level 2] December 2019 flying birds
archery安装测试
HB 5469民用飞机机舱内部非金属材料燃烧试验方法
Introduction to programming hardware
Enumeration, simulation, and sorting
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
May day C - most
Install sqlserver2019
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3