the style displayed on the ios shows the result of the style on the PC side. I use
var nWidth = window.innerWidth in the js file | | document.documentElement.clientWidth;
if(nWidth > 500){
alert("pc")
}else{
alert("miblie")
}
"pc"
the style displayed on the ios shows the result of the style on the PC side. I use
var nWidth = window.innerWidth in the js file | | document.documentElement.clientWidth;
if(nWidth > 500){
alert("pc")
}else{
alert("miblie")
}
"pc"
js to determine whether the mobile end or the pc side knows. Judging by the size of the equipment, it must not be an exact match.
window.innerWidth
the width of the document display area of the returned window
, that is to say, for example, there is only one div > width
1000px
on your page, then what you get at the bottom of the page window.innerWidth
is 10008
, 1000+body.margin
. User-scalable=no "> code >
Thank you for the boss. The problem is solved, or there is a problem with their own page layout. I feel that the requirement of ios on H5 is higher than Android
how to solve it? ask the boss for advice. I also encountered this problem, which is very uncomfortable.
I would like to ask you how to deal with the abnormal display of your h5 page in ios. My pc page has shrunk on ios, and he enlarged it by adding meta.
H5 page is compatible with the mobile end, and the media query used has no problem on Android, but on ios, the page layout displayed is still PC side. It seems that meta name= "viewport " does not work. Which god guides the reason ...
1. Describe the problem requirements as above, and the backend interface needs my post format as follows: { type : *** , list : [ { filename : *** , filedata : File } ] } 2. I have...
iphone uses download with a tag as well as address jump and iframe to directly open files and kneel for answers. How to use js to download files on iphone browsers ...
when a video is played you want to stop playing a video by clicking on a location using VideoContext.stop () has no effect at all see someone offering this idea: _this.videoContext.seek(0) _this.videoContext.pause(); ** * * * palyVi...