360浏览器兼容模式css错乱问题

解决360浏览器兼容模式css错乱问题

有些时候在本地写好代码,不管是直接打开网页flie://,还是localhost:
网页都没有问题,但是放到服务器上面,打开360浏览器后选择兼容模式,发现css
错乱,而在本地没有任何问题。 下面给出两种解决方法:

  • 第一种:强制执行极速模式<meta name="renderer" content="webkit">

  • 第二种:<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    这种方式可以完美解决这个问题。通知 Windows Internet Explorer 以最高级别的可用模式显示内容。

猜你喜欢

转载自blog.csdn.net/qq_24073885/article/details/76618955