javascript - Android and H5 adaptation
为情所困
为情所困 2017-05-17 09:56:24
0
2
706

On some Android machines, when you open the H5 page, an additional blue box will appear. After testing, this box is the focus. It was not in the correct position during initialization. If you move the focus box, it will be normal next time. Only when opening the web page, it is not initialized correctly, and why is the focus a blue box? ? Should this be set on Android or H5?

为情所困
为情所困

reply all(2)
仅有的幸福

Try this css

    html {
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
巴扎黑

Blue is their default color, which can be directly set to transparent
input[type="text"], input[type="tel"], a { -webkit-tap-highlight-color: transparent; }

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!