当前位置:网站首页>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).
边栏推荐
- Dataguard 主备清理归档设置
- One click installation with fishros in blue bridge ROS
- Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
- AITM3.0005 烟雾毒性测试
- Rock-paper-scissors
- 【编程题】【Scratch二级】2019.03 绘制方形螺旋
- Les mots ont été écrits, la fonction est vraiment puissante!
- [leetcode] 20. Valid brackets
- Chisel tutorial - 01 Introduction to Scala
- SQL uses the in keyword to query multiple fields
猜你喜欢
【史上最详细】信贷中逾期天数统计说明
Robomaster visual tutorial (1) camera
How did a fake offer steal $540million from "axie infinity"?
Daily question brushing record (16)
Go learning notes (1) environment installation and hello world
自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
全自动化处理每月缺卡数据,输出缺卡人员信息
HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
Opengl3.3 mouse picking up objects
随机推荐
面试题详解:用Redis实现分布式锁的血泪史
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
Ping error: unknown name or service
数据库查询——第几高的数据?
FFA and ICGA angiography
Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis
Wechat applet development beginner 1
[programming problem] [scratch Level 2] December 2019 flying birds
Uic564-2 Appendix 4 - flame retardant fire test: flame diffusion
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
Set up personal network disk with nextcloud
Gorm Association summary
Connect diodes in series to improve voltage withstand
UIC564-2 附录4 –阻燃防火测试:火焰的扩散
Introduction to programming hardware
The result of innovation in professional courses such as robotics (Automation)
Fully automated processing of monthly card shortage data and output of card shortage personnel information
正畸注意事项(持续更新中)
网上买基金安全么?