小编wan*_*der的帖子

滑动移动问题(Iphone)

当我在移动设备中向下滑动我的网站时,第一张幻灯片是错误的,看起来它向右滑动,然后向另一个方向返回几个px(但只有新方向的第一张幻灯片有这个问题).我认为更好的方法是在手机上测试它:https://even-mind.com

我该如何解决?我希望你能帮助我们!

目前,我发现的唯一一件事是删除owl-carousel.js脚本,因此滑动变得平滑但当然旋转木马不起作用,你可以在这里看到它:https: //dev.even-mind.com /偶心灵

(在iphone 5上测试过)

html javascript css mobile twitter-bootstrap

20
推荐指数
2
解决办法
810
查看次数

当 Affix div 大于内容和窗口时,Affix Bootstrap 出现问题

当 Affix div 大于主要内容和窗口时,我遇到了 Affix Bootstrap 问题。

在这里,一切都很好,因为有足够的内容:http ://jsfiddle.net/d8jzenbr/

var headerHeight = $('header').outerHeight(true); /
var footerHeight = $('footer').outerHeight() + 60;
$('#account-overview-container').affix({
    offset: {
        top: headerHeight,
        bottom: footerHeight
    }
}).on('affix.bs.affix', function () { // before affix
});
Run Code Online (Sandbox Code Playgroud)

当内容不够大时,请参阅此处的问题:http://jsfiddle.net/90m0r91t/(当 affix-top 变为 affix 时存在问题)

我该如何修复它,以便当没有足够的内容时,后缀 div 保持静态而不是固定?

谢谢

javascript css fixed affix twitter-bootstrap-3

4
推荐指数
1
解决办法
457
查看次数