Chrome bug: iframe rendering lines on screen when scrolling up

前端 未结 7 1438
深忆病人
深忆病人 2021-01-05 16:28

bug here: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-bugs/eUfzp3UJDwo%5B1-25%5D

just encountered this problem, streaking up my screen

相关标签:
7条回答
  • 2021-01-05 17:00

    I ran in to a similar problem and was able to fix it in my case by setting -webkit-margin-after and -webkit-margin-before to 0.

    <h1 style="-webkit-margin-after:0; -webkit-margin-before:0;">foobar</h1>
    <iframe src="..."></iframe>
    

    Also, I initially tried replacing the H1 with a span as in Jiri's example, but the lines came back when I tried to apply a top and bottom margin of .2em to the span. Removing margins cleaned things up (I just used line-height to create some space around the header)

    0 讨论(0)
提交回复
热议问题