In IE11, my local hosted sites always renders with Document Mode= EDGE. Technically it should use doctype IE9, because of my page doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Below are steps i have preformed before posting
My dev environment is Windows7 64bit, ASP.net 4.5 and IIS 7.5
Thanks for reading the question.
Your DOCTYPE declaration will trigger the highest mode available to the version of IE used to view the page.
To force the page to IE9 standards mode, add the following as the first line of your page's section:
<meta http-equiv="x-ua-compatible" content="IE=9">
Please note that this may not be an ideal experience in the long run. When you view the page using MS Edge, it will be rendered in Edge mode (since Edge does not support x-ua-compatible
). Also, the IE9 specific features you're hoping to rely on may have been removed in a more recent version of IE .
Hope this helps...
-- Lance
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.