当前位置:网站首页>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
边栏推荐
- 618“低调”谢幕,百秋尚美如何携手品牌跨越“不确定时代”?
- Do you know several assertion methods commonly used by JMeter?
- Float.floatToRawIntBits的返回值具体意思,将float转为byte数组
- 完爆面试官,一线互联网企业高级Android工程师面试题大全
- [untitled]
- Force buckle 729 My schedule I
- Fuzor 2020软件安装包下载及安装教程
- Zhongang Mining: analysis of the current market supply situation of the global fluorite industry in 2022
- PHP uses ueditor to upload pictures and add watermarks
- Vagrant2.2.6 supports virtualbox6.1
猜你喜欢

Hiengine: comparable to the local cloud native memory database engine

Notion 类生产力工具如何选择?Notion 、FlowUs 、Wolai 对比评测

Go语言 | 02 for循环及常用函数的使用

third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl

【obs】QString的UTF-8中文转换到blog打印 UTF-8 char*

Password reset of MariaDB root user and ordinary user

Microwave radar induction module technology, real-time intelligent detection of human existence, static micro motion and static perception

Common interview questions in Android, 2022 golden nine silver ten Android factory interview questions hit

HiEngine:可媲美本地的云原生内存数据库引擎

How to convert word into PDF? Word to PDF simple way to share!
随机推荐
Django使用mysqlclient服务连接并写入数据库的操作过程
Android面试,android音视频开发
third-party dynamic library (libcudnn.so) that Paddle depends on is not configured correctl
Is it safe for China Galaxy Securities to open an account? Securities account opening
Fundamentals of machine learning (III) -- KNN / naive Bayes / cross validation / grid search
中国银河证券开户安全吗 证券开户
What are the reliable domestic low code development platforms?
HiEngine:可媲美本地的云原生内存数据库引擎
Vagrant2.2.6 supports virtualbox6.1
Oracle fault handling: ora-10873:file * needs to be either taken out of backup or media recovered
通过POI追加数据到excel中小案例
多分支结构
测试的核心价值到底是什么?
The binary string mode is displayed after the value with the field type of longtext in MySQL is exported
软件测试是干什么的?学习有啥要求?
大厂面试必备技能,2022Android不死我不倒
【硬核干货】数据分析哪家强?选Pandas还是选SQL
众昂矿业:2022年全球萤石行业市场供给现状分析
MMO project learning 1: preheating
使用 RepositoryProvider简化父子组件的传值