问题描述
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<SharePoint:SPHtmlTag dir="<%$Resources:wss,multipages_direction_dir_value%>" ID="SPHtmlTag" runat="server" >
<head id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="utf-8" />
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
以上是在我的母版页"中添加的元标记.但是,即使在IE11或IE10中打开网站时,它仍将默认文档模式选择为7.我的同一SharePoint网站在Chrome中可以正常打开.
Above are the meta tags added in My Master Page. but still when the site is opened in IE11 or IE10 it chooses default document mode as 7 . My same SharePoint site opens fine in Chrome .
有人知道如何将默认文档模式设置为EDGE.我不希望系统/机器级别的设置.如果您有任何想法,请告诉我.谢谢.
Does anybody know how to set default document mode to EDGE . i dont want system/machine level settings. please let me know if you have any ideas. Thank you.
推荐答案
1.请检查SharePoint网站,并确保未添加到兼容性视图"列表中,因为如果将文档模式添加到此列表中,它将停留在文档模式下,您可以使用IE浏览器进行检查->工具->兼容性视图设置:
1. Please check the SharePoint site and make sure not added in the Compatibility View list as document mode will be stucked if added to this list, you can check with IE Browser-> Tools->Compatibility View settings:
2.将此行添加到< head>中的母版页中标签:
2. Add this line into you master page within <head> tag:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
返回以查看浏览器"文档模式将更改为边缘":
Back to see the Browser document mode will change to Edge:
更多信息:
谢谢
最好的问候
这篇关于我的Sharepoint网站在IE11或IE10中打开时,将以文档模式7打开.如何使用IE = edge文档模式打开它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!