📜  css 中 id 和 class 之间的区别 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:38.693000             🧑  作者: Mango

代码示例1
/* The difference between an ID and a class is that an ID 
is only used to identify one single element in our HTML. 
IDs are only used when one element on the page should have a 
particular style applied to it. However,
a class can be used to identify more than one HTML element. */