Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE 11.0兼容性的用户代理标记_Html_Css_Compatibility_User Agent_Internet Explorer 11 - Fatal编程技术网

Html IE 11.0兼容性的用户代理标记

Html IE 11.0兼容性的用户代理标记,html,css,compatibility,user-agent,internet-explorer-11,Html,Css,Compatibility,User Agent,Internet Explorer 11,我有一个网站,其中有这个html代码 Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0) 我有下面的css html[data-useragent*='MSIE 10.0'] #flexslider { margin-top: 0; position: relative; top: -244px; } 所以问题是,上面的ID在IE10中运行良好,在IE11中不起作用。 我应该在我的网站上添加

我有一个网站,其中有这个html代码

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
我有下面的css

html[data-useragent*='MSIE 10.0'] #flexslider {
    margin-top: 0;
    position: relative;
    top: -244px;
}
所以问题是,上面的ID在IE10中运行良好,在IE11中不起作用。 我应该在我的网站上添加什么代码来支持IE 11?

试试这个:

html[data-useragent*='rv:11.0'] #flexslider {
    margin-top: 0;
    position: relative;
    top: -244px;
}

IE11不再报告为MSIE,为什么出于上帝的爱,你想要这个?只要编写好代码,它就可以在IE10和IE11中正常工作。。。试试或者@NielsKeurentjes嘿,这不是我的网站,我只是被指派来解决这个问题,还有一堆代码。@NielsKeurentjes我仍然在IE10和IE11中发现CSS问题,并且在这两个版本中都缺少大量属性。与Chrome或Firefox相比,IE仍然不是那么好。