当前位置:网站首页>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
边栏推荐
- C#应用程序界面开发基础——窗体控制(5)——分组类控件
- Is it safe for China Galaxy Securities to open an account? Securities account opening
- The problem of returning the longtext field in MySQL and its solution
- Debezium系列之:解析默认值字符集
- 【obs】libobs-winrt :CreateDispatcherQueueController
- Add data to excel small and medium-sized cases through poi
- JMeter 常用的几种断言方法,你会了吗?
- Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?
- Postman core function analysis - parameterization and test report
- MMO項目學習一:預熱
猜你喜欢
C application interface development foundation - form control (5) - grouping control
使用 RepositoryProvider简化父子组件的传值
【无标题】
Go语言 | 02 for循环及常用函数的使用
MySql中的longtext字段的返回问题及解决
HiEngine:可媲美本地的云原生内存数据库引擎
【C语言】字符串函数及模拟实现strlen&&strcpy&&strcat&&strcmp
UWB超宽带定位技术,实时厘米级高精度定位应用,超宽带传输技术
webuploader文件上传 拖拽上传 进度监听 类型控制 上传结果监听控件
Django uses mysqlclient service to connect and write to the database
随机推荐
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
成功入职百度月薪35K,2022Android开发面试解答
Fuzor 2020軟件安裝包下載及安裝教程
Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?
The relationship between temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)
JMeter 常用的几种断言方法,你会了吗?
How to choose the notion productivity tools? Comparison and evaluation of notion, flowus and WOLAI
What does software testing do? What are the requirements for learning?
acm入门day1
打新债在哪里操作开户是更安全可靠的呢
Debezium系列之:修改源码支持unix_timestamp() as DEFAULT value
通过POI追加数据到excel中小案例
力扣 1200. 最小绝对差
Is it safe for Anxin securities to open an account online?
HiEngine:可媲美本地的云原生内存数据库引擎
UWB超宽带定位技术,实时厘米级高精度定位应用,超宽带传输技术
爬虫练习题(二)
【AI 框架基础技术】自动求导机制 (Autograd)
全网最全的低代码/无代码平台盘点:简道云、伙伴云、明道云、轻流、速融云、集简云、Treelab、钉钉·宜搭、腾讯云·微搭、智能云·爱速搭、百数云
Realizing deep learning framework from zero -- LSTM from theory to practice [practice]