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

来源:互联网 发布:淘宝内部优惠券群号 编辑:程序博客网 时间:2024/06/05 14:23

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

<metaname="screen-orientation" content="portrait">

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

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

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

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

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

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

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

<metaname="renderer" content="webkit">

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

<metaname="renderer" content="ie-comp">

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

<metaname="renderer" content="ie-stand">

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

<metaname="renderer" content="webkit|ie-comp">

阅读全文
0 0
原创粉丝点击