我有一个 div
,它的类看起来像这样 className={`${cardSelected && 'shadow-factors'} bg-white rounded-md cursor-pointer`}/
现在我正在设置页面的打印版本,我想知道是否可以使用 TailwindCSS 工具集以某种方式删除打印版本的阴影因子/框阴影?
最佳答案
是的,Tailwind 有一个修饰符 print
,你可以看看 here
例如-打印时阴影会消失
<div class="shadow-lg print:shadow-none">
Hello World
</div>
关于css - TailwindCSS : is it possible to remove a box-shadow on print?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71746273/