:paused
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
:paused
CSS 伪类选择器表示一个处于“暂停”状态(即非“播放”状态)的可播放的元素,如 <audio>
或 <video>
。
如果用户明确将资源暂停,或者资源处于非激活状态或其他非播放状态,如“已加载但尚未激活”,则该资源将被视为已暂停。
语法
css
:paused {
/* ... */
}
示例
CSS
css
:paused {
border: 5px solid orange;
}
规范
Specification |
---|
Selectors Level 4 # selectordef-paused |
HTML # selector-paused |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
:paused |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.