使用 tailwindcss 2,我想使用以下方法隐藏小型设备上表中的一些列sm:hidden:
<table class="table-auto">
<thead class="bg-gray-700 border-b-2 border-t-2 border-gray-300">
<tr>
<th class="py-2">Name</th>
<th class="py-2">Active</th>
<th class="py-2">Type</th>
<th class="py-2 sm:hidden">Category</th>
<th class="py-2 sm:hidden">Mailchimp Id</th>
<th class="py-2"></th>
</tr>
</thead>
<tbody>
<tr>
<td class="">
Name content
</td>
<td class="">
Active content
</td>
<td class="">
Typecontent
</td>
<td class=" sm:hidden">
Category content
</td>
<td class="sm:hidden">
mailchimp content
</td>
Run Code Online (Sandbox Code Playgroud)
我预计在 640px 和更小的设备上会隐藏 2 列,但失败了。
哪种语法是正确的?
谢谢
| 归档时间: |
|
| 查看次数: |
10247 次 |
| 最近记录: |