【滚动条】jquery.mCustomScrollbar在IE的兼容模式下问题

Thanks Malihu for this great plugin! Just one problem is the scrollbar does not display correct on IE7. I could fix this issue, so just post it here in case it helpful for other people.
1. Open jquery.mCustomScrollbar.css
2. Update the code as below:
a) Line 32,
Find
.mCSB_scrollTools .mCSB_draggerRail{
width:2px;
height:100%;
margin:0 auto;
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
}

Replace with
.mCSB_scrollTools .mCSB_draggerRail{
width:2px;
height:100%;
margin:0 0 0 -1px;
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
left: 50%;
position: absolute;
}

b) Line 63,
Find
.mCSB_scrollTools .mCSB_buttonDown{
top:100%;
margin-top:-40px;
}

Replace with
.mCSB_scrollTools .mCSB_buttonDown{
bottom: 0;
left: 0;
margin: 0;
position: absolute;
width: 100%;
}

Hope it help for you for still support IE7.

Reply
  • Abby
    Posted on January 3, 2014 at 22:31 Permalink

    Thank you so much. I just added a ie7.css stylesheet and, using your code, made it work for IE7. I just needed to add top:auto;

    Here is what is in my ie7.css:
    .mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 0 0 -1px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;left: 50%;position: absolute;}.mCSB_scrollTools .mCSB_buttonDown{top: auto;bottom: 0;left: 0;margin: 0;position: absolute;width: 100%;}

    Reply
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值