Chrome bug: iframe rendering lines on screen when

2019-02-09 19:34发布

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 on chrome, but not on firefox, or IE. anyone on a mac seen this?

7条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-02-09 20:19

I found out that it's possible to workaround this Chrome bug by shaking up the DOM a bit.

E.g. this was causing the issue:

  <h1>foobar</h1>
  <iframe src="..." style="border:none"></iframe>

... but replacing the H1 with SPAN fixed it:

  <span style="display:block">foobar</span>
  <iframe src="..." style="border:none"></iframe>
查看更多
登录 后发表回答