|
@@ -219,18 +219,20 @@
|
|
|
//如果为Android
|
|
|
const ch = (20 * clientWidth) / (clientheight + 122)
|
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
|
+ $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
|
}
|
|
|
if (isiOS) {
|
|
|
//如果为iOS
|
|
|
const ch = (20 * clientWidth) / (clientheight + 272)
|
|
|
console.log("长和宽", clientWidth, clientheight)
|
|
|
+ $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
|
}
|
|
|
var html = document.querySelector("html");
|
|
|
var clientWidth = html.getBoundingClientRect().width;
|
|
|
var clientheight = window.innerHeight;
|
|
|
html.style.fontSize = clientWidth / 23.4375 + "px";
|
|
|
|
|
|
- $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
|
+ // $('.swiper-slide').css("padding", `20% ${ch}%`)
|
|
|
// var player = new PCMPlayer({
|
|
|
// encoding: '16bitInt',
|
|
|
// channels: 2,
|