当前位置:网站首页>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
边栏推荐
- Tutoriel de téléchargement et d'installation du progiciel fuzor 2020
- The problem of returning the longtext field in MySQL and its solution
- C application interface development foundation - form control (6) - menu bar, toolbar and status bar controls
- JAD的安装、配置及集成IDEA
- Fundamentals of shell programming (Part 8: branch statements -case in)
- PHP uses ueditor to upload pictures and add watermarks
- What does software testing do? What are the requirements for learning?
- 【AI 框架基础技术】自动求导机制 (Autograd)
- How about testing outsourcing companies?
- 建议收藏,我的腾讯Android面试经历分享
猜你喜欢

集合

Go语言 | 02 for循环及常用函数的使用
![[AI framework basic technology] automatic derivation mechanism (autograd)](/img/9c/a5713def131dc7643cc19b3839ff0c.png)
[AI framework basic technology] automatic derivation mechanism (autograd)

The city chain technology Digital Innovation Strategy Summit was successfully held

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

Fuzor 2020 software installation package download and installation tutorial

详解SQL中Groupings Sets 语句的功能和底层实现逻辑

Two pits exported using easyexcel template (map empty data columns are disordered and nested objects are not supported)

Go语言 | 01 WSL+VSCode环境搭建避坑指南
![[OBS] qstring's UTF-8 Chinese conversion to blog printing UTF-8 char*](/img/cc/172684664a9115943d45b0646ef110.png)
[OBS] qstring's UTF-8 Chinese conversion to blog printing UTF-8 char*
随机推荐
Microwave radar induction module technology, real-time intelligent detection of human existence, static micro motion and static perception
如何安全快速地从 Centos迁移到openEuler
Hiengine: comparable to the local cloud native memory database engine
大厂面试必备技能,2022Android不死我不倒
Millimeter wave radar human body sensor, intelligent perception of static presence, human presence detection application
国海证券在网上开户安全吗?
多分支结构
C application interface development foundation - form control (6) - menu bar, toolbar and status bar controls
UWB ultra wideband positioning technology, real-time centimeter level high-precision positioning application, ultra wideband transmission technology
[untitled]
What do software test engineers do? How about the prospect of treatment?
强化学习-学习笔记4 | Actor-Critic
Successful entry into Baidu, 35K monthly salary, 2022 Android development interview answer
How to realize the Online timer and offline timer in the game
MMO項目學習一:預熱
Can Leica capture the high-end market offered by Huawei for Xiaomi 12s?
What does software testing do? What are the requirements for learning?
Is it safe for Guohai Securities to open an account online?
建议收藏,我的腾讯Android面试经历分享
S7-200SMART利用V90 MODBUS通信控制库控制V90伺服的具体方法和步骤