当前位置:网站首页>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).
边栏推荐
- 面试题详解:用Redis实现分布式锁的血泪史
- Anaconda+pycharm+pyqt5 configuration problem: pyuic5 cannot be found exe
- Set up personal network disk with nextcloud
- Kubectl's handy command line tool: Oh my Zsh tips and tricks
- Pycharm basic settings latest version 2022
- Where are you going
- Go learning notes (1) environment installation and hello world
- QT and OpenGL: load 3D models using the open asset import library (assimp)
- How did a fake offer steal $540million from "axie infinity"?
- 一鍵免費翻譯300多頁的pdf文檔
猜你喜欢

Wechat applet development beginner 1

【编程题】【Scratch二级】2019.09 绘制雪花图案

35岁那年,我做了一个面临失业的决定

95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)

10 schemes to ensure interface data security

HB 5469 combustion test method for non-metallic materials in civil aircraft cabin

80%的人答错,苹果logo上的叶子到底朝左还是朝右?

用语雀写文章了,功能真心强大!

FFA and ICGA angiography

Dataguard 主备清理归档设置
随机推荐
Restricted linear table
Pigsty: out of the box database distribution
ROS from entry to mastery (IX) initial experience of visual simulation: turtlebot3
Enumeration, simulation, and sorting
Resolve the URL of token
HDU - 1260 Tickets(线性DP)
数据库查询——第几高的数据?
Data Lake (XV): spark and iceberg integrate write operations
【推荐系统基础】正负样本采样和构造
PostGIS learning
一个测试工程师的7年感悟 ---- 致在一路独行的你(别放弃)
SQL connection problem after downloading (2)
P5594 [xr-4] simulation match
解析token的网址
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
Using Google test in QT
Aitm3.0005 smoke toxicity test
507 field D - extraterrestrial relics
Automated testing: robot framework is a practical skill that 90% of people want to know
一键免费翻译300多页的pdf文档