var boxs = document.getElementById('m2-head');
var Height = boxs.clientHeight||o.offsetHeight;
console.log(Height)
$(".swiper-container").css({"margin-top":Height + "px"});
js 动态获取高度 设置距离
猜你喜欢
转载自www.cnblogs.com/guangzhou11/p/12067815.html
今日推荐
周排行