【问题标题】:Making the table responsive in wordpress在 wordpress 中使表格响应
【发布时间】:2019-12-29 01:24:36
【问题描述】:

目前,当我的产品页面从移动设备加载时,我的桌子被切断了(见附图)。

我要在我的 css 或 html 中添加什么来使其对齐? 下面是我的html代码。

您可以查看产品页面以供参考 https://www.sebuys.com/shop/windows-10-customised-i7-i5-7th-gen-rgb-gaming-tower-16gb-8gb-ddr4-pc-computer/

Windows 10 Customised i7/i5 7th Gen RGB Gaming Tower 16GB / 8GB DDR4 PC Computer
<table class="shop_attributes">
<tbody>
<tr>
<td>Condition:</td>
<td>Brand New</td>
<td>Operating System Edition:</td>
<td>64bit Professional</td>
<td>Form Factor:</td>
<td>Gaming PC Tower</td>
</tr>
<tr>
<td>Storage Type:</td>
<td>SSD &amp; SATA</td>
<td>MPN:</td>
<td>Does Not Apply</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Brand:</td>
<td>Custom, Whitebox</td>
<td>Windows 10</td>
<td>Windows 10</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
&nbsp;

Screenshot

【问题讨论】:

    标签: php html css wordpress html-table


    【解决方案1】:

    表格从不响应。您所能做的就是将表格包装在一个 div 中,然后将 overflow:auto 应用于该 div。

    <div style="overflow:auto">
      <table>
        ...
      </table>
    </div>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-26
      • 2015-09-28
      • 1970-01-01
      • 2018-03-20
      • 2016-07-10
      • 2019-07-14
      • 1970-01-01
      • 2015-10-17
      相关资源
      最近更新 更多