有人可以告诉我这种语法是什么,我尝试查找它但没有找到它。我指的是玩家类的扩展方式,即“ .player:fullscreen”。谢谢。
.player {
max-width: 750px; /n
border: 5px solid rgba(0, 0, 0, 0.2);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
position: relative;
font-size: 0;
overflow: hidden;
}
/* This css is only applied when fullscreen is active */
.player:fullscreen {
max-width: none;
width: 100%;
}
.player:-webkit-full-screen {
max-width: none;
width: 100%;
}