:seeking
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
CSS :seeking
伪类选择器表示一个可播放的元素,比如 <audio>
或 <video>
,当可播放元素正在媒体资源中寻找播放位置时。如果用户请求在媒体资源中的特定位置播放,但媒体元素尚未达到该位置,则认为资源正在寻找。
:seeking
与 :buffering
不同,因为媒体元素当前不是在加载数据,而是在媒体资源中跳到一个新的位置。有关更多信息,请参考媒体缓冲、拖动和时间范围指南。
语法
css
:seeking {
/* ... */
}
示例
CSS
css
:seeking {
outline: 5px solid red;
}
video:seeking {
outline: 5px solid blue;
}
规范
Specification |
---|
Selectors Level 4 # selectordef-seeking |
HTML # selector-seeking |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
:seeking |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
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.