【发布时间】:2021-09-17 04:18:06
【问题描述】:
像 youtube.com 或 twitch.tv 这样的网站有一个我称之为替代视图的功能,与默认视图相比,播放器使用更多的屏幕空间。
如何使用即时编译器在 tailwindcss 中实现?
<html class="player-large">
<body>
<!-- like using the build in darkMode: 'class' feature -->
</div>
</body>
</html>
布局将使用顺风网格功能完成,html 标签上的“player-large”类用于切换视图。
我希望像这样使用它:
<video class="lg:col-span-2 lg:large-player:col-span-full">...</video>
如何做到这一点?
【问题讨论】:
标签: css tailwind-css jit