[英]<meta http-equiv=“X-UA-Compatible” content=“IE=7” /> What does this code do?
i wonder what does this do? 我想知道这是做什么的? Since i did put date picker on my site, and the coding provide with this
<meta http-equiv="X-UA-Compatible" content="IE=7" />
code. 由于我确实在网站上放置了日期选择器,并且此
<meta http-equiv="X-UA-Compatible" content="IE=7" />
代码提供了编码。 The date picker provide 2 ways to choose date which is from the calendar itself and from drop down menu. 日期选择器提供了两种从日历本身和下拉菜单中选择日期的方式。 So far I have no problem to pick date using calendar.
到目前为止,我使用日历选择日期没有问题。 The problem if i removed this code (
<meta http-equiv="X-UA-Compatible" content="IE=7" />
), my date won't changed according to the value selected. 问题是,如果我删除了此代码(
<meta http-equiv="X-UA-Compatible" content="IE=7" />
),我的日期将不会根据所选的值而更改。 But once i add back the coding, i can get my date using drop down list but it's only work on IE, not in Chrome. 但是,一旦我重新添加了编码,我就可以使用下拉列表获取日期,但它仅适用于IE,而不适用于Chrome。 I just wonder if there's any way for me to make sure the calendar work fine in IE and Chrome using date picker from drop-down list and calendar.
我只是想知道是否可以使用下拉列表和日历中的日期选择器来确保日历在IE和Chrome中正常工作。
Please advice. 请指教。 Thanks.
谢谢。
X-UA-Compatible specifies the version of IE which your page has been designed for. X-UA兼容指定您的页面设计用于的IE版本。 There is a topic on StackOverflow describing this meta attribute, it may helps you
StackOverflow上有一个描述此元属性的主题,它可能会帮助您
尝试以这种方式使用它-<meta http-equiv =“ X-UA-Compatible” content =“ IE = Edge,chrome = 1”>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.