每次刷新时 DOM 渲染都会出错
这变得有点奇怪。
我正在设计一个网站,每次我在 safari、google chrome 中刷新我的网站(本地主机)时,元素都会移动到其他地方,当刷新几次后,它会纠正,再次刷新后,渲染又出现错误。
你们有什么想法吗?
我注意到的一件事是,当它渲染错误时,它显示屏幕的方式不是即时的,而是从左上角开始,像窗帘一样折叠到右下角。
它在 Opera、Firefox、IE 中运行良好。
谢谢!
编辑:
我试图让我的朋友将其加载到他的计算机中,看起来他这边做得很好。我的电脑看起来有问题。我会自己在另一台计算机上尝试这些代码,并在看到结果后重新编辑我的帖子。感谢各位的帮助!
This is getting kinda weird.
I am designing a website and every time I refresh my site (localhost) in safari, google chrome, the elements move someplace else and when refresh back after a few times, it corrects and after refreshing again, the rendering is faulty again.
Do you guys have any idea?
One thing I notice is that when it renders faulty, the way it display the screen is not instant instead it starts on the upperleft, folding to the lower right like a curtain.
It works good in opera, firefox, IE.
Thanks!
EDIT:
I tried to ask my friend to load it in his computer and it looks like it is doing well on his side. It looks like a problem on my Computer. I'll go try the codes out myself in another computer and re-edit my post when I see the results. Thanks for the help guys!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是否有任何 html 元素没有指定显示属性或宽度?发布 html 标记和 css 以更好地理解您的问题。
does any of the html elements don't have a display property or width specified? Post the html markup and css for better understanding your problem.