【问题标题】:html table breaks background when resizing调整大小时html表格打破背景
【发布时间】:2021-04-15 07:06:00
【问题描述】:

我在最大宽度上使用顺风表。对于 html,我使用的是默认的 Laravel Jetstream 布局。

当我尝试在较小的设备上使用滚动条时,背景不会在浏览器中重复。

【问题讨论】:

  • 你有链接吗?这样解决问题会容易得多

标签: html html-table background tailwind-css


【解决方案1】:

这种情况已经通过将overflow-x css属性添加到表格周围的div中解决了。

顺风示例:

<div class="overflow-x-scroll">
<table class="min-w-full">
<!-- table content --> 
</table>
</div>

【讨论】:

    猜你喜欢
    • 2016-07-10
    • 2017-03-29
    • 1970-01-01
    • 2012-01-14
    • 2013-05-26
    • 2017-02-25
    • 1970-01-01
    • 2013-06-08
    • 2018-12-23
    相关资源
    最近更新 更多