Solution to the problem of large font size on iPhone devices in wap pages

Solution to the problem of large font size on iPhone devices in wap pages
If you don't want to use javascript control, then try the following method

Safari browser is based on the webkit kernel, so this sentence is easy to understand from a semantic point of view

Copy code
The code is as follows:

@media screen and (max-device-width: 640px){body{-webkit-text-size-adjust:none;}}

body can be replaced with any container you want

The screen width of iPhone 4 is 640px, so if you have iPhone 5, the screen is 800PX, and the corresponding value of the style can also be modified.

<<:  Teach you how to install docker on windows 10 home edition

>>:  Summary of commonly used tags in HTML (must read)

Recommend

Detailed tutorial on installing Docker and nvidia-docker on Ubuntu 16.04

Table of contents Docker Installation Nvidia-dock...

MySQL whole table encryption solution keyring_file detailed explanation

illustrate MySql Community Edition supports table...

How to Set Shortcut Icons in Linux

Preface Creating shortcuts in Linux can open appl...

Detailed explanation of samba folder sharing server configuration under centos

1. Introduction Recently I found that there are m...

WeChat applet records user movement trajectory

Table of contents Add Configuration json configur...

js to realize the rotation of web page pictures

This article shares the specific code of js to re...

Mini Program to Implement Slider Effect

This article example shares the specific code for...

Tutorial on how to connect and use MySQL 8.0 in IDEA's Maven project

First, let's take a look at my basic developm...

A brief introduction to Linux environment variable files

In the Linux system, environment variables can be...

Brief analysis of centos 7 mysql-8.0.19-1.el7.x86_64.rpm-bundle.tar

Baidu Cloud Disk: Link: https://pan.baidu.com/s/1...

mySql SQL query operation on statistical quantity

I won't say much nonsense, let's just loo...

vue3 custom directive details

Table of contents 1. Registering custom instructi...

What magical uses does CSS filter have

background Basic Concepts CSS filter property app...