默认使用浏览器最高版本和默认使用的内核,强制竖屏

<!-- uc强制竖屏 -->

<meta name="screen-orientation" content="portrait">

<!-- QQ强制竖屏 -->

<meta name="x5-orientation" content="portrait">

<!— 使用浏览器最高版本 -->

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<!— 强制dpi320 这样移动端可以直接使用px 但是以后这个属性会移除 能不用就不用吧 -->

<meta name="viewport" id="viewportid" content="target-densitydpi=320,width=640,user-scalable=no">

<!-- 使用webkit内核 -->

<meta name="renderer" content="webkit">

<!-- 使用IE兼容内核 -->

<meta name="renderer" content="ie-comp">

<!-- 使用IE标准内核 -->

<meta name="renderer" content="ie-stand">

<!—- 综合写法 浏览器会根据左到右的顺序,使用自己有的内核 -->

<meta name="renderer" content="webkit|ie-comp">


猜你喜欢

转载自blog.csdn.net/Angular_/article/details/78789214