解决IE6下无法设置滚动条颜色

PHP中文网
Release: 2017-03-16 16:42:28
Original
1837 people have browsed it

解决IE6下无法设置滚动条颜色

一般设置滚动条样式的时候会使用如下CSS代码:

body 
{ 
    scrollbar-face-color:#f6f6f6; 
    scrollbar-highlight-color:#fff; 
    scrollbar-shadow-color:#eeeeee; 
    scrollbar-3dlight-color:#eeeeee; 
    scrollbar-arrow-color:#000; 
    scrollbar-track-color:#fff; 
    scrollbar-darkshadow-color:#fff; 
}
Copy after login

但是在IE6下不管用。解决方法就是将body改为html即可,修改后代码如下:

html
{ 
    scrollbar-face-color:#f6f6f6; 
    scrollbar-highlight-color:#fff; 
    scrollbar-shadow-color:#eeeeee; 
    scrollbar-3dlight-color:#eeeeee; 
    scrollbar-arrow-color:#000; 
    scrollbar-track-color:#fff; 
    scrollbar-darkshadow-color:#fff; 
}
Copy after login

以上就是解决IE6下无法设置滚动条颜色的详细内容,更多请关注php中文网其它相关文章!

相关文章:

DIV实现自动滚动功能及滚动条颜色修改

设置div滚动条颜色的css代码

如何在样式表中区分不同的IE版本?如何使兼容IE8与IE10的滚动条颜色?

Related labels:
ie6
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!