当前位置:网站首页>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).
边栏推荐
- codeforces每日5题(均1500)-第八天
- 【leetcode】day1
- SQL connection problem after downloading (2)
- webflux - webclient Connect reset by peer Error
- Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
- Reverse output three digit and arithmetic sequence
- 【编程题】【Scratch二级】2019.12 绘制十个正方形
- May day d-light
- [the most detailed in history] statistical description of overdue days in credit
- Visual Studio Deployment Project - Create shortcut to deployed executable
猜你喜欢

串联二极管,提高耐压

Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis

Data Lake (XV): spark and iceberg integrate write operations

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

Magic fast power

蓝桥ROS中使用fishros一键安装

Using Google test in QT

一鍵免費翻譯300多頁的pdf文檔

Introduction to programming hardware

神奇快速幂
随机推荐
C language learning
One click installation with fishros in blue bridge ROS
35岁那年,我做了一个面临失业的决定
Go time package common functions
Learn about scratch
An example analysis of MP4 file format parsing
Detailed explanation of interview questions: the history of blood and tears in implementing distributed locks with redis
Open display PDF file in web page
35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
【leetcode】day1
Problems faced when connecting to sqlserver after downloading (I)
C language greedy snake
P1308 [noip2011 popularity group] count the number of words
Is it safe for tongdaxin to buy funds?
Fully automated processing of monthly card shortage data and output of card shortage personnel information
一份假Offer如何盗走了「Axie infinity」5.4亿美元?
HDU - 1260 tickets (linear DP)
用語雀寫文章了,功能真心强大!
Laser slam learning (2d/3d, partial practice)
Reverse output three digit and arithmetic sequence