admin管理员组文章数量:1397219
First of all, I don't want to just remove it, I want to ensure that there is still scrolling capabilities there also.
This is because I would like to have a 'slide show' affect on the website, where you can click 'next' and before, however with the scroll bar there, you can just go through it.
I have hidden the scrollbar in other browsers using:
::-webkit-scrollbar {
display: none;
}
for webkit browsers and overflow: -moz-scrollbars-none;
for Firefox. However, when it es to IE, I can't find anything to simply hide it.
I found these on the internet:
scrollbar-3dlight-color:;
scrollbar-arrow-color:;
scrollbar-base-color:;
scrollbar-darkshadow-color:;
scrollbar-face-color:;
scrollbar-highlight-color:;
scrollbar-shadow-color:;
I thought by changing the colour to transparent
, it would disappear, but it did not (just reverts back to normal).
Is there a way I can simply hide the scrollbar (simply like display:none
or something else), in IE? I am open to css
and js
options.
jsFiddle of problem
NOTE: Adding overflow:hidden;
stops the page from going past the second div
when clicking the a
tag.
First of all, I don't want to just remove it, I want to ensure that there is still scrolling capabilities there also.
This is because I would like to have a 'slide show' affect on the website, where you can click 'next' and before, however with the scroll bar there, you can just go through it.
I have hidden the scrollbar in other browsers using:
::-webkit-scrollbar {
display: none;
}
for webkit browsers and overflow: -moz-scrollbars-none;
for Firefox. However, when it es to IE, I can't find anything to simply hide it.
I found these on the internet:
scrollbar-3dlight-color:;
scrollbar-arrow-color:;
scrollbar-base-color:;
scrollbar-darkshadow-color:;
scrollbar-face-color:;
scrollbar-highlight-color:;
scrollbar-shadow-color:;
I thought by changing the colour to transparent
, it would disappear, but it did not (just reverts back to normal).
Is there a way I can simply hide the scrollbar (simply like display:none
or something else), in IE? I am open to css
and js
options.
jsFiddle of problem
NOTE: Adding overflow:hidden;
stops the page from going past the second div
when clicking the a
tag.
- Your edit shows a severe lack of both understanding the provided answer and proper use of the shift / caps lock key. – PeeHaa Commented Nov 27, 2013 at 11:41
- I bolded it because I didn't want that answer @PeeHaa – Albzi Commented Nov 27, 2013 at 11:41
- As I stated: lack of understanding – PeeHaa Commented Nov 27, 2013 at 11:42
- I find this post quite offensive as the bold capital text feels quite shouty, we're here to help, not to take mands, if you need to explain something simply make your question clear instead of going bold-capslock mode. – SidOfc Commented Nov 27, 2013 at 11:42
-
@SidneyLiebrand, it's hard to convey how I am saying it. It's not that I am shouting, I just wanted to state that I wanted another method other than
overflow:hidden;
. Sorry. – Albzi Commented Nov 27, 2013 at 11:43
2 Answers
Reset to default 4See here for fiddle using your current code
Try this trick
body, div, html{
height:100%;
width:100%;
padding:0;
margin:0;
}
body{
overflow:hidden;
position:fixed;
}
div{
overflow-y:scroll;
position:relative;
right:-20px;
}
It offsets a scrollable div so its vertical scrollbar is outside the viewable area.
I have similar problem, I don't need scroll bars on main page, but i have to have inside of my page content like in div's and span's.
So I found solution like this:
body {
-ms-overflow-style: none;
}
div, span {
-ms-overflow-style: auto;
}
本文标签: javascriptRemoving IE39s scrollbarStack Overflow
版权声明:本文标题:javascript - Removing IE's scrollbar - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744108582a2591183.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论