我搜了一下,有的文章说macbook下用safari浏览器打开网站,设置user agent就可以。
但是我本地用如下页面跑在safari的话,不论怎么更改user agent,css display flex总是生效的,safari这个user agent应该不能工作,问一下使用mac的朋友你们都是怎么测试IE页面的?谢谢。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.parent {
width: 600px;
height: 200px;
display: flex;
}
.left {
background-color: pink;
width: 200px;
}
.right {
background-color: lightgreen;
flex: 1;
}
</style>
</head>
<body>
<div class="parent">
<div class="left">
left
</div>
<div class="right">
right
</div>
</div>
<script>
window.onload = function () {
console.log('aaaa');
console.log(Promise);
}
</script>
</body>
</html>
跑VM装WIN7然后装IE8
改UA没有用的,不是说把UA改成IE8就真的是IE8了