简体   繁体   English

tailwindcss 的响应式设计太慢

[英]Responsive design of tailwindcss is too slow

I'm making a blog with nextjs and I want to show or hide TOC (Table of Contents) responsively.我正在用 nextjs 创建一个博客,我想响应地显示或隐藏TOC (目录)。

I'm using tailwindcss but the reaction is too slow.我正在使用 tailwindcss 但反应太慢了。

Is there a solution?有解决办法吗?

This is my code这是我的代码

<div className={`invisible xl:visible`}>
  <TableOfContents />
</div>

Problem问题

在此处输入图像描述

Can you try with display (none xl:block) parameters?您可以尝试使用 display (none xl:block) 参数吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM