V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
KouShuiYu

Chrome 浏览器的一个 bug!

  •  
  •   KouShuiYu · Feb 16, 2022 · 1347 views
    This topic created in 1543 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
        1
    rekulas  
       Feb 16, 2022
    win10 同版测不出来
    这种简单场景不大可能出问题 不清楚是 mac 版本异常还是你自己电脑环境导致的
    huguohuan
        3
    huguohuan  
       Feb 17, 2022
    mac 版本 98.0.4758.80 (正式版本) (arm64)
    无法重现。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3141 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 03:17 · PVG 11:17 · LAX 20:17 · JFK 23:17
    ♥ Do have faith in what you're doing.