• 请不要在回答技术问题时复制粘贴 AI 生成的内容
string2020
V2EX  ›  程序员

在 chrome 80 以下版本版本里。 有可能让 table 的宽度设置为 width:auto 时, table 的宽度能超过 100%吗?

  •  2
     
  •   string2020 · Aug 21, 2023 · 1428 views
    This topic created in 1003 days ago, the information mentioned may be changed or developed.

    最新版本的 chrome 是能超过 100%的。chrome 80 以前的版本无法超过 100%; 测试代码如下:

    <html> <head></head> <body>
    <colgroup> <col style="width: 3000px; min-width: 3000px;">
    </colgroup>
    <tr>
      <th style="background-color: red;color: black">
        1
      </th>
    </tr>
    <tr>
      <td style="background-color: red;color: black">
        1
      </td>
    </tr>
    
    </body> </html>
    string2020
        2
    string2020  
    OP
       Aug 21, 2023
    @omi4399 怎么说
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    ♥ Do have faith in what you're doing.