: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 Standard
# selector-paused

浏览器兼容性

BCD tables only load in the browser

参见