KouShuiYu

Chrome 浏览器的一个 bug!

  •  
  •   KouShuiYu · Feb 16, 2022 · 1668 views
    This topic created in 1740 days ago, the information mentioned may be changed or developed.
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
    </head>
    <body>
      <canvas id="canvas"></canvas>
    </body>
    <script>
    const canvas = document.getElementById('canvas');
    const ctx = canvas.getContext('2d');
    
    ctx.fillStyle = 'green';
    ctx.fillRect(10, 10, 150, 100);
    </script>
    </html>
    

    切换下标签页,canvas 就不显示了( mac 版本 98.0.4758.102 (正式版本))

    rekulas
    rekulas
    Feb 16, 2022
    1
    win10 同版测不出来
    这种简单场景不大可能出问题 不清楚是 mac 版本异常还是你自己电脑环境导致的
    huguohuan
    huguohuan
    Feb 17, 2022
    3
    mac 版本 98.0.4758.80 (正式版本) (arm64)
    无法重现。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   908 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:18 · PVG 03:18 · LAX 11:18 · JFK 14:18
    ♥ Do have faith in what you're doing.