【滚动条】jquery.mCustomScrollbar在IE的兼容模式下问题
2014-08-06 08:43
591 查看
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
Here is what is in my ie7.css:
Reply
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
相关文章推荐
- 解决jquery 修改onclick事件后IE兼容模式下立刻执行的问题
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法(转)
- jquery自定义滚动条-->mCustomScrollbar
- 10 jQuery Custom Scrollbar Plugins 滚动条特效
- [Jquery.customScrollbar]独立滚动条插件分享
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法
- jQuery 自定义网页滚动条样式插件 mCustomScrollbar 的介绍和使用方法
- JQUERY版本导致的ff与ie兼容问题
- jquery解析XML在IE7下不兼容的问题
- 自定义滚动条样式-jquery.tinyscrollbar.min.js 插件
- 解决jquery-easyui1.3.3 combobox 多选模式不兼容IE8问题
- 完美解决IE兼容模式问题
- android:scrollbarStyle属性及滚动条和分割线覆盖问题
- 超棒的自定义超酷滚动条jQuery插件 - Perfect Scrollbar
- IE 10 jQuery 兼容问题
- 超棒的自定义超酷滚动条jQuery插件 - Perfect Scrollbar
- jquery实现图片等比例缩放,解决max-width在ie中不兼容问题