提交 e90c47fa 编写于 作者: D devil_gong

detail

上级 8b9c8aae
......@@ -261,7 +261,7 @@
</div>
<div class="introduceMain">
<div class="am-tabs" data-am-tabs>
<ul class="am-avg-sm-3 am-tabs-nav am-nav am-nav-tabs">
<ul class="am-avg-sm-3 am-tabs-nav am-nav am-nav-tabs" data-am-sticky>
<li class="am-active">
<a href="javascript:;">
......
......@@ -239,6 +239,7 @@ width: 62px;line-height:24px;font-size: 12px;display: block;}
/*介绍*/
.introduce{width:100%;margin: 0px auto;text-align: center;padding-bottom: 110px;}
.introduceMain{width:100%;background:#fff ;}
.introduceMain .am-tab-panel { padding: 0px; }
.browse{display: none;}
/*产品参数*/
......
......@@ -1485,65 +1485,6 @@ $(document).ready(function() {
$('.theme-popover').slideUp(200);
})
}
})
//导航固定
$(document).ready(function() {
var $ww = $(window).width();
var dv = $('ul.am-tabs-nav.am-nav.am-nav-tabs'),
st;
if ($ww < 623) {
var tp =$ww+363;
$(window).scroll(function() {
st = Math.max(document.body.scrollTop || document.documentElement.scrollTop);
if (st >= tp) {
if (dv.css('position') != 'fixed') dv.css({
'position': 'fixed',
top: 0,
left: 0,
'z-index': 1000009
});
} else if (dv.css('position') != 'static') dv.css({
'position': 'static'
});
});
//滚动条复位(需要减去固定导航的高度)
$('.introduceMain ul li').click(function() {
sts = tp;
$(document).scrollTop(sts);
});
} else {
dv.attr('otop', dv.offset().top); //存储原来的距离顶部的距离
var tp = parseInt(dv.attr('otop'))+36;
$(window).scroll(function() {
st = Math.max(document.body.scrollTop || document.documentElement.scrollTop);
if (st >= tp) {
if (dv.css('position') != 'fixed') dv.css({
'position': 'fixed',
top: 0,
'z-index': 998
});
//滚动条复位
$('.introduceMain ul li').click(function() {
sts = tp-35;
$(document).scrollTop(sts);
});
} else if (dv.css('position') != 'static') dv.css({
'position': 'static'
});
});
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册