84669인 학습
152542인 학습
20005인 학습
5487인 학습
7821인 학습
359900인 학습
3350인 학습
180660인 학습
48569인 학습
18603인 학습
40936인 학습
1549인 학습
1183인 학습
32909인 학습
如上代码,使页面限制成640px宽度,但是在有的设备上是失效的,有的是高度好像没跟着缩小~求解
这样设置,让其自适应
var width; if(window.orientation===undefined){ width = screen.width; }else{ if(window.orientation==0){ width=Math.min(screen.width,screen.height); }else{ width=Math.max(screen.width,screen.height); } } var scale = width / 640; document.write('');
最近新找到的解决方法,有效。但其兼容性还需要再测测,基本主流机型是没出现问题
content=”width=device-width,让其自适应足矣,不知道为何要你那么做
这样设置,让其自适应
最近新找到的解决方法,有效。但其兼容性还需要再测测,基本主流机型是没出现问题
content=”width=device-width,让其自适应足矣,不知道为何要你那么做