首页 > 其他 > 详细

为IE和chrome编写单独的样式

时间:2017-09-04 19:30:21      阅读:218      评论:0      收藏:0      [点我收藏+]

flex布局在IE10上不支持,为IE10编写特定的样式可以用判断navigator.userAgent 的方法

var doc = document.documentElement;  
doc.setAttribute(‘data-useragent‘, navigator.userAgent);  

css:

    html[data-useragent*=‘MSIE‘] .LoginContainer {  
      width: 350px;  
}  

 

为IE和chrome编写单独的样式

原文:http://www.cnblogs.com/rlann/p/7475039.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!