Home >Backend Development >PHP Tutorial >Load an HTML webpage and center the text on the webpage. When loading it using WebView on the mobile phone, it will not be centered.

Load an HTML webpage and center the text on the webpage. When loading it using WebView on the mobile phone, it will not be centered.

WBOY
WBOYOriginal
2016-08-04 09:19:181868browse

Load an HTML webpage, and the text is centered on the webpage. When loaded using WebView on the mobile phone, it is not centered. How should I solve this problem? Should I adjust it on the mobile phone or in the background?

Reply content:

Load an HTML webpage, and the text is centered on the webpage. When loaded using WebView on the mobile phone, it is not centered. How should I solve this problem? Should I adjust it on the mobile phone or in the background?

This should be used by kids who write web pages to do style control

It must be the fault of the front end!

Check whether your webview configuration is correct and whether it supports styles, js, etc.

It is possible that your centered code is not compatible on the mobile side

Both are possible. If the front-end code is fine, you have to find the loading settings

Let Android and front-end partners check it

1. It is estimated that the Android window is loading abnormally


The front-end students divided the pot first, and then went back to solve the problem

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn