CSS #id Selector
- 上一页 element
- 下一页 *
- 返回上一层 CSS Selector Reference Manual
Definition and Usage
CSS #id
Selector is used to select elements with specified id.
Example
Select and set the style of the element with id="firstname":
#firstname { background-color: yellow; }
CSS Syntax
#id { CSS Declarations; }
Technical Details
Version: | CSS1 |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
支持 | 支持 | 支持 | 支持 | 支持 |
- 上一页 element
- 下一页 *
- 返回上一层 CSS Selector Reference Manual