我有一个HTML页面,它在第一次加载时加载一种方式,在第二次加载时加载另一种方式。在私有模式下使用Chrome可以重现这一情况(因为它每次都会清除缓存)。
第一次:
第二(及以后)时间:
我以前从未见过这样的问题,因此在寻找其他投诉时遇到了麻烦。关于从哪里开始调查的任何建议?
Thanks for all the feedback. Just to clarify a few things. The CSS is standard Bootstrap 3.0 only, there is no other styling or CSS. The URL is https://www.acls.net/index-exp120.php and this is Chrome Private mode with all extensions disabled. I only see this issue in Chrome, have updated title to reflect that.
Ok - the issue depends on multiple things
So while running Chrome in Incognito Mode and reloading again and again eventually I could reproduce the issue.
You cannot easily fix the loading race condition but fixing your css should work :
pull-left
to your logoclearfix
to the page-headerwidth
&添加height
到徽标图像中,这样在加载后就不会弹出所以这里是:
<div class="page-header clearfix">
<a href="/" class="logo pull-left"">
<img src="images/logo.png" height="62" width="232" alt="">
</a>
希望能有所帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句