我有一个网站,里面有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中工作正常,在IE 11上不起作用。我应该在我的网站上放什么代码来支持IE 11?
试试这个:
html[data-useragent*='rv:11.0'] #flexslider {
margin-top: 0;
position: relative;
top: -244px;
}