当前位置:网站首页>The difference between ID selector and class selector
The difference between ID selector and class selector
2022-07-05 19:38:00 【Try some fresh food with a child】
1、ID Selectors
ID Selector use # Are identified , Follow closely the next year ID name
grammar :
ID Selectors
id name { Property name 1: Property value 1; Property name 2: Property value 2; Property name 3; Property value 3;}
label
< p id=“id name ”>< /p>
Elemental ID Value is unique , It can only correspond to one element in the document .
Usage is basically the same as class selector
2、ID The difference between a selector and a class selector
w3c The standard stipulates , In the same page content , It is not allowed to have the same name id The object appears , But the same name is allowed class
Class selectors (class) It's like a person's name ,, It can be used multiple times
ID Selector is like a person's ID number , All China is the only , Don't repeat
边栏推荐
- gst-launch的-v参数
- How to realize the Online timer and offline timer in the game
- PG basics -- Logical Structure Management (user and permission management)
- 详解SQL中Groupings Sets 语句的功能和底层实现逻辑
- What is the function of okcc call center
- 【obs】libobs-winrt :CreateDispatcherQueueController
- Hiengine: comparable to the local cloud native memory database engine
- HAC cluster modifying administrator user password
- Bitcoinwin (BCW) was invited to attend Hanoi traders fair 2022
- 中国银河证券开户安全吗 证券开户
猜你喜欢
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
Inventory of the most complete low code / no code platforms in the whole network: Jiandao cloud, partner cloud, Mingdao cloud, Qingliu, xurong cloud, Jijian cloud, treelab, nailing · Yida, Tencent clo
司空见惯 - 英雄扫雷鼠
Successful entry into Baidu, 35K monthly salary, 2022 Android development interview answer
How to realize the Online timer and offline timer in the game
JAD的安装、配置及集成IDEA
Android interview, Android audio and video development
成功入职百度月薪35K,2022Android开发面试解答
软件测试是干什么的?学习有啥要求?
Apprentissage du projet MMO I: préchauffage
随机推荐
Realizing deep learning framework from zero -- LSTM from theory to practice [practice]
C#应用程序界面开发基础——窗体控制(5)——分组类控件
不愧是大佬,字节大牛耗时八个月又一力作
40000 word Wenshuo operator new & operator delete
[AI framework basic technology] automatic derivation mechanism (autograd)
How MySQL queries and modifies JSON data
5 years of experience, 27 days of Android programmer interview, 2022 programmer advanced classic
完爆面试官,一线互联网企业高级Android工程师面试题大全
【obs】libobs-winrt :CreateDispatcherQueueController
Is it safe for Guohai Securities to open an account online?
Reptile exercises (II)
再忙不能忘安全
Debezium系列之:记录mariadb数据库删除多张临时表debezium解析到的消息以及解决方法
Zhongang Mining: analysis of the current market supply situation of the global fluorite industry in 2022
What do software test engineers do? How about the prospect of treatment?
HiEngine:可媲美本地的云原生内存数据库引擎
MySQL中字段类型为longtext的值导出后显示二进制串方式
MMO project learning 1: preheating
国海证券在网上开户安全吗?
使用easyexcel模板导出的两个坑(Map空数据列错乱和不支持嵌套对象)