版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35746765/article/details/79193417
var
phoneWidth
=
parseInt
(
window
.
screen
.
width
),
phoneScale
=
phoneWidth
/
750
;
document
.
write
(
'<meta name="viewport" content="width=750, initial-scale=1, minimum-scale = '
+
phoneScale
+
', maximum-scale = '
+
phoneScale
+
', target-densitydpi=device-dpi">'
);