当前位置:网站首页>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).
边栏推荐
- 2022.7.7-----leetcode.648
- 【編程題】【Scratch二級】2019.12 飛翔的小鳥
- Basic learning of SQL Server -- creating databases and tables with the mouse
- 光流传感器初步测试:GL9306
- ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
- Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
- Jisuan Ke - t3104
- Aitm3.0005 smoke toxicity test
- @Configuration注解的详细介绍
- LinkedBlockingQueue源码分析-新增和删除
猜你喜欢
Apng2gif solutions to various problems
Connect diodes in series to improve voltage withstand
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
QT creator add JSON based Wizard
Using Google test in QT
Rectification characteristics of fast recovery diode
FFA与ICGA造影
The function is really powerful!
【编程题】【Scratch二级】2019.12 飞翔的小鸟
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
随机推荐
神奇快速幂
Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
SQL connection problem after downloading (2)
codeforces每日5题(均1500)-第八天
FFA and ICGA angiography
aws-aws help报错
Jisuan Ke - t3104
Opengl3.3 mouse picking up objects
Magic fast power
35岁那年,我做了一个面临失业的决定
PostGIS learning
Visual Studio Deployment Project - Create shortcut to deployed executable
Aitm3.0005 smoke toxicity test
Gorm Association summary
@Detailed introduction of configuration annotation
Fully automated processing of monthly card shortage data and output of card shortage personnel information
Anaconda+pycharm+pyqt5 configuration problem: pyuic5 cannot be found exe
Data Lake (XV): spark and iceberg integrate write operations
Pypharm uses, and the third-party library has errors due to version problems
An example analysis of MP4 file format parsing