我正在使用 Flexslider2 ( http://flexslider.woothemes.com/thumbnail-controlnav.html ) 并在我的项目中获得这种奇怪的跳跃效果;基本上它会循环,并且框架会像下图一样折叠。我链接的 .js 文件和 flex 脚本就在结束 body 标记之前。chrome开发工具也没有错误。
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>
<script defer src="js/jquery.flexslider.js"></script>
<script type="text/javascript" src="js/lib/jquery.easing.min.js"></script>
<script defer src="js/jquery.mousewheel.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
这是我为适应我的参数而更改的唯一一段 css。任何帮助都会膨胀!
.flexslider { margin: 0 auto 60px; max-width: 740px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); -o-box-shadow: 0 1px 4px rgba(0,0,0,.2); box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1; }
.flex-viewport { max-height: 2000px; max-width: 740px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }