当前位置:网站首页>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
边栏推荐
- Reinforcement learning - learning notes 4 | actor critical
- JAD的安装、配置及集成IDEA
- How MySQL queries and modifies JSON data
- 多分支结构
- 再忙不能忘安全
- Fuzor 2020 software installation package download and installation tutorial
- Summer Challenge database Xueba notes, quick review of exams / interviews~
- 2022 the latest big company Android interview real problem analysis, Android development will be able to technology
- Hiengine: comparable to the local cloud native memory database engine
- HAC cluster modifying administrator user password
猜你喜欢

aggregate

【C语言】字符串函数及模拟实现strlen&&strcpy&&strcat&&strcmp

Reinforcement learning - learning notes 4 | actor critical

Worthy of being a boss, byte Daniel spent eight months on another masterpiece

Mariadb root用户及普通用户的密码 重置

618“低调”谢幕,百秋尚美如何携手品牌跨越“不确定时代”?

IBM has laid off 40 + year-old employees in a large area. Mastering these ten search skills will improve your work efficiency ten times

What does software testing do? What are the requirements for learning?

40000 word Wenshuo operator new & operator delete
Django使用mysqlclient服务连接并写入数据库的操作过程
随机推荐
The problem of returning the longtext field in MySQL and its solution
通过POI追加数据到excel中小案例
40000 word Wenshuo operator new & operator delete
力扣 729. 我的日程安排表 I
aggregate
JAD installation, configuration and integration idea
JMeter 常用的几种断言方法,你会了吗?
Shell编程基础(第8篇:分支语句-case in)
What do software test engineers do? How about the prospect of treatment?
Fundamentals of shell programming (Chapter 9: loop)
gst-launch的-v参数
【C语言】字符串函数及模拟实现strlen&&strcpy&&strcat&&strcmp
MMO project learning 1: preheating
如何安全快速地从 Centos迁移到openEuler
HiEngine:可媲美本地的云原生内存数据库引擎
什么是面上项目
软件测试工程师是做什么的?待遇前景怎么样?
PG基础篇--逻辑结构管理(用户及权限管理)
手机股票开户安全吗?靠不靠谱啊?
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台