此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
: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 不同,因为媒体元素当前不是在加载数据,而是在媒体资源中跳到一个新的位置。有关更多信息,请参考媒体缓冲、拖动和时间范围指南。
In this article
语法
css
:seeking { /* ... */}示例
>CSS
css
:seeking { outline: 5px solid red;}video:seeking { outline: 5px solid blue;}规范
| Specification |
|---|
| Selectors Level 4> # selectordef-seeking> |
| HTML> # selector-seeking> |