logo

目录

CSS常见面试题
🔈

CSS常见面试题

What is the difference between classes and ID's in CSS?

The id selector is used for selecting a single HTML element with a unique id attribute value.
ids are unique
  • Each element can have only one id
  • Each page can have only one element with that id
#header { width: 100%; height: 80px; background: blue }
本章目录
    1v1免费职业咨询