我们遇到了caroufredsel的问题,在我们的网站第一次打开时它完全加载,但当它被缓存并再次打开时,F.O.U.C。发生并且元素在垂直位置短暂显示。
文档告诉“溢出:隐藏”可以解决问题(http://docs.dev7studios.com/jquery-plugins/caroufredsel#jumpNav-8),但在我们的情况下却没有。
这是我们的代码:
<div class="caroufredsel_wrapper" style="
display: block;
text-align: start;
float: none;
position: relative;
top: auto;
right: auto;
bottom: auto;
left: auto;
z-index: auto;
width: 1170px;
height: 155px;
margin: 0px;
overflow: hidden;">
<div class="slider-politicas">
<div class="navegation-top"><span class="next">Next</span> <span class="prev">Prev</span></div>
<div class="block-content">
<ul>
<li>
<div class="block free-shipping">
<div class="block-title"><span>Free Shipping</span></div>
<div class="block-content">Free and fast Shipping.</div>
</div>
</li>
<li>
<div class="block secured-payment">
<div class="block-title"><span>Secure Payment</span></div>
<div class="block-content">Total payment protection.</div>
</div>
</li>
</ul>
</div>
<script type="text/javascript">// <![CDATA[
$sns_jq(document).ready(function() {
$sns_jq('.slider-politicas .block-content ul').carouFredSel({
responsive: true,
width: '100%',
scroll: {
items: 1,
duration: 800
},
items: {
width: '290',
visible: {
min: 4,
max: 10
}
},
next: '.slider-politicas .prev',
prev: '.slider-politicas .next',
auto: true
});
});
// ]]></script>
</div>
以下是我们的开发网站:http://www.comercialbv.com/