Internet Explorer 11 renders page strangely until reszing?

守給你的承諾、 提交于 2019-12-23 02:44:09

问题


Just started testing IE11 with our internal websites and found this error occurs (see link below) but if you resize the window it renders the page correctly. Only happens on some pages and I can't see why? Has anyone seen this before?

http://i151.photobucket.com/albums/s135/tonyyeb/ie11error_zps83d87df7.png

EDIT: Just to clarify the page when rendered correctly looks NOTHING like this!

EDIT2: We think it maybe showing the page at a VERY high zoom level.


回答1:


Do you have code that is specific to different browsers? If so then note that the User-Agent string of IE11 is very different than the user-agent strings of the past IEs and usually parsing scripts of this user-agent work in a weird way. I would guess that because of this new string some parsing of it fails which causes the javascript on the page to stop (as JavaScript does on errors) and then work again on a resize because you have some action done on resizing.




回答2:


Found the cause of the problem, jQuery was being included twice in the page causing this random event to occur.



来源:https://stackoverflow.com/questions/21404308/internet-explorer-11-renders-page-strangely-until-reszing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!