简体   繁体   中英

<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. 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. 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. 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.

Please advice. Thanks.

X-UA-Compatible specifies the version of IE which your page has been designed for. There is a topic on StackOverflow describing this meta attribute, it may helps you

尝试以这种方式使用它-<meta http-equiv =“ X-UA-Compatible” content =“ IE = Edge,chrome = 1”>

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM