The H5 page I made is compatible with the mobile terminal. The mobile terminal page can be displayed normally on Android, but the pc terminal page is still displayed on ios.

  ios, question

图片描述

The style shown on ios shows the pc style. I use it in js file
var nWidth = window.innerWidth || document.documentElement.clientWidth;

if(nWidth > 500){
 Alert('pc Width')
 }else{
 Alert ('mibelie width')
 bracket
 The output result is' PC Width', my heart's broken, old fellow.. Does anyone want to know what is going on?

Js judges whether the mobile terminal or the pc terminal knows about it. If you judge by the size of the equipment, it is definitely not a perfect match.
clipboard.png