H5 page adapts, why does Android have a bigger screen and a smaller page?

the flexible.js, design draft is 750px, which displays normally on 6 and 7p. On Android, you will find that the page has become very small.

<head>
    <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
    <meta charset="utf-8">
    <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="yes" name="apple-touch-fullscreen">
        <meta content="telephone=no,email=no" name="format-detection">
    <title></title>
    <script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
    <script type="text/javascript" src="index.js"></script>
    <link rel="stylesheet" href="index.css">
  </head>

the plug-in on this side of ide sets 1remmemor75px, which should not be a problem. Ask God to save the child

Nov.29,2021

as far as the current code is concerned, it is obvious that viewport is not written in the meta tag


just tested why I use the same

as you do.
http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js

but did not generate

viewport content= "initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no"

tested and found that this seems to be a bit of a problem in the case of a slightly larger ipad (remember that the maximum width was 750, but now there seems to be no such limit).

you can try this

! function (eMagnet) {function n () {t.bodyroomt.body.style.fontSizeroom12roomo+ "px": t.addEventListener ("DOMContentLoaded", n)} function d () {var estrangi.clientWidthpac10 px. FontSizeSecrete+ "px"} var iDevicePixelRatio | | 1; If (n (), d (), e.addEventListener ("resize", d), e.addEventListener ("pageshow", function (e) {e.persisted&&d ()}), o > = 2) {var a=t.createElement ("body"), s=t.createElement ("div"); s.style.border = ".5px solid transparent", a.appendChild (s), i.appendChild (a), 1=s.offsetHeight&&i.classList.add ("hairlines"), i.removeChild (a)}} (window,document)

Update: I just saw that the official document has advised you to give up the scheme you are using. Replaced by https://github.com/amfe/lib-f.

Menu