Tailwind Overflow Class Table ClassProperties overflow-autooverflow: auto; overflow-hiddenoverflow: hidden; overflow-visibleoverflow: visible; overflow-scrolloverflow: scroll; overflow-x-autooverflow-x: auto; overflow-y-autooverflow-y: auto; overflow-x-hiddenoverflow-x: hidden; ...
<divclassName="py-5 ">\n<divclassName="overflow-x-auto">\n<tableclassName="w-full max-w-4xl mx-auto overflow-hidden bg-white divide-y divide-gray-300 rounded-lg whitespace-nowrap">\n<theadclassName="bg-gray-900">\n<trclassName="text-left text-white">\n<thclassName="px-6 py-4 ...
我想为其内容制作水平滚动的表格,并且我尝试whitespace-nowrap对具有长内容的表格单元格使用类,并对所有表格使用overflow-x-auto,例如: <div class="editor_listing_wrapper_bix_width"> <table class=" overflow-x-auto p-1 m-1 d2"> <thead class="bg-gray-700 border-b-2 border-t-2 border-gray-300...
overflow-x-auto overflow-y-auto overflow-x-hidden overflow-y-hidden overflow-x-clip overflow-y-clip overflow-x-visible overflow-y-visible overflow-x-scroll overflow-y-scroll Visibility 用于控制元素可见性的实用程序 visible invisible collapse Z-index 用于控制元素堆叠顺序的实用程序 z-0 z-10 z-20...
<div class="overflow-x-auto"> <table class="w-full"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-500 uppercase"> 订单编号 </th> <th class="px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-...
</table> </div> </div> </div> 图表适配 对于图表组件,我们需要特别处理深色模式: // 图表配置 function setupChart() { const ctx = document.getElementById('sales-chart').getContext('2d'); // 检测当前主题 const isDark = document.documentElement.classList.contains('dark'); ...
-- 响应式表格 --><divclass="mt-8 bg-white rounded-lg shadow overflow-hidden"><divclass="overflow-x-auto"><tableclass="min-w-full divide-y divide-gray-200"><theadclass="bg-gray-50"><tr><thclass="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"...
overflow-x-auto overflow-y-auto overflow-x-hidden overflow-y-hidden overflow-x-clip overflow-y-clip overflow-x-visible overflow-y-visible overflow-x-scroll overflow-y-scroll Visibility 用于控制元素可见性的实用程序 visible invisible collapse Z-index 用于控制元素堆叠顺序的实用程序 z-0 z-10 ...
<div class="overflow-x-auto overscroll-x-contain bg-table rounded-t-3px"> Contributor davidruvolo51 Oct 18, 2024 To have enough spacing at the bottom, it's possible to add pb-* here. In this design, I noticed that the text hugs the left side of the table. We could consider add...
tableLayout The table-layout utilities like table-auto textAlign The text-align utilities like text-center textColor The text-color utilities like text-green-700 textDecoration The text-decoration utilities like line-through textOpacity The text-opacity utilities like text-opacity-50 textOverflow The ...