V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
string2020
V2EX  ›  程序员

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

  •  2
     
  •   string2020 · 250 天前 · 530 次点击
    这是一个创建于 250 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最新版本的 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
       250 天前
    @omi4399 怎么说
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2746 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:26 · PVG 18:26 · LAX 03:26 · JFK 06:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.