html - Compatibility View and its importance -
i have finished layout website, , working fine in browsers (opera, safari, chrome, ie 7, 8, 9, 10 (both), , several others) - time around, compatibility view button in address bar of ie 10 appearing. has not happened long time , it's annoying me.
i don't want compatibility view button display @ all. sends bad message viewers/visitors. in case, have tested whole site on different computers running different browsers , different versions of browsers , have not noticed single problem.
why compatibility view button appearing if there no issues?
here's problem, , said, works fine - except when turn on compatibility view in ie 10. when turn on, things in entire website can see logo, , little image in top right corner of page (but they're positioned wanted them). gives?
there's nothing wrong code - seriously. i've had validated several times, ajax stuff works charm, , tried hard find problem , intentionally tried mess it's working well. positioning of spot on.
so what's deal compatibility view junk? why there - on website not have issues? and, importantly, is important make sure website works while in compatibility view though works when it's off , though works in major browsers - , some?
first , foremost, can force ie not display compatibility view button adding page head:
<meta http-equiv="x-ua-compatible" content="ie=edge">
as other questions:
why compatibility view button appearing if there no issues?
so what's deal compatibility view junk? why there - on website not have issues?
it's there in case site, typically 1 written many years ago, fails work in newer version of ie, allow users view or ie display in legacy rendering mode work better.
additionally, it's there by default because legacy sites not have meta tag above begin with. in order button display when viewing existing sites without having update code, it's logical make opt-out feature instead, having developer add new code tell newer versions of ie hide button when it's not needed.
and, importantly, is important make sure website works while in compatibility view though works when it's off , though works in major browsers - , some?
compatibility view meant websites specifically designed legacy browsers, , such, depend on legacy rendering quirks not present in more recent browsers may cause "problems" in more recent browsers.
without seeing site, won't able determine why works in ie7 , ie10 in ie7 mode not compatibility view, if works in newer versions of ie, not need ensure works in compatibility view. using meta tag above hide button when it's not necessary suffice.
Comments
Post a Comment