:future
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
CSS :future ä¼ªç±»éæ©å¨æ¯ä¸ç§æ¶é´ç»´åº¦ä¼ªç±»ï¼ç¨äºå¹é
é£äºå®å
¨åºç°å¨å¹é
:current å
ç´ ä¹åçå
ç´ ãä¾å¦ï¼å¨éè¿ WebVTT æ¾ç¤ºåå¹çè§é¢ä¸ã
css
:future(p, span) {
display: none;
}
è¯æ³
css
:future {
/* ... */
}
示ä¾
>CSS
css
:future(p, span) {
display: none;
}
HTML
html
<video controls preload="metadata">
<source src="video.mp4" type="video/mp4" />
<source src="video.webm" type="video/webm" />
<track
label="Chinese"
kind="subtitles"
srclang="zh"
src="subtitles.vtt"
default />
</video>
WebVTT
WEBVTT FILE 1 00:00:03.500 --> 00:00:05.000 è¿æ¯ç¬¬ä¸æ¡åå¹ 2 00:00:06.000 --> 00:00:09.000 è¿æ¯ç¬¬äºæ¡åå¹ 3 00:00:11.000 --> 00:00:19.000 è¿æ¯ç¬¬ä¸æ¡åå¹
è§è
| Specification |
|---|
| Selectors Level 4 > # the-future-pseudo > |