CSS :current

原创
admin 4个月前 (08-23) 阅读数 15 #CSS

:current

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents an element or the ancestor of an element that is currently being displayed. For example, this pseudo-class can be used to represent a video that is being displayed with captions by WebVTT.

css
:current(p, span) {
  background-color: yellow;
}

版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权本站发表,未经许可,不得转载。

上一篇:CSS :checked 下一篇:CSS :default
作者文章
热门
最新文章
标签列表