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

Instructions for nested use of MySQL ifnull

Nested use of MySQL ifnull I searched online to s...

Mobile browser Viewport parameters (web front-end design)

Mobile browsers place web pages in a virtual "...

CentOS7.5 installation tutorial of MySQL

1. First check whether the system has mysql insta...

Detailed explanation of as, question mark and exclamation mark in Typescript

1. The as keyword indicates an assertion In Types...

Simple usage example of vue recursive component

Preface I believe many students are already famil...

How to optimize images to improve website performance

Table of contents Overview What is Image Compress...

JavaScript Closures Explained

Table of contents 1. What is a closure? 1.2 Memoi...

Example analysis of mysql stored procedure usage

This article describes the usage of MySQL stored ...

Specific use of Node.js package manager npm

Table of contents Purpose npm init and package.js...

MySQL index leftmost principle example code

Preface I was recently reading about MySQL indexe...

Multiple ways to change the SELECT options in an HTML drop-down box

After the form is submitted, the returned HTML pag...

MySQL 4 common master-slave replication architectures

Table of contents One master and multiple slaves ...