Home > Web Front-end > HTML Tutorial > How to distinguish different IE versions in stylesheet? How to make the scroll bar color compatible with IE8 and IE10?

How to distinguish different IE versions in stylesheet? How to make the scroll bar color compatible with IE8 and IE10?

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

Question: How to distinguish different IE versions in style sheets? How to make the scroll bar color compatible with IE8 and IE10?

body
{
    vertical-align:top;
    background-color:#FFFFFF;
    margin:0px 0px 0px 0px;
    color:#000000;
    font-size:12px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    scrollbar-3dlight-color :#DEE7F8; 
    scrollbar-highlight-color :#DEE7F8; 
    scrollbar-face-color : #DEE7F8; 
    scrollbar-arrow-color : threedhighlight; 
    scrollbar-shadow-color :#DEE7F8; 
    scrollbar-darkshadow-color :#DEE7F8; 
    scrollbar-base-color : #BFD5FF; 
    scrollbar-track-color :threedhighlight;
}
Copy after login

How to make IE10 and IE8 compatible? Thank you!

Solution:

Rewrite the CSS to

html,body
{
    vertical-align:top;
    background-color:#FFFFFF;
    margin:0px 0px 0px 0px;
    color:#000000;
    font-size:12px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    scrollbar-3dlight-color :#DEE7F8; 
    scrollbar-highlight-color :#DEE7F8; 
    scrollbar-face-color : #DEE7F8; 
    scrollbar-arrow-color : threedhighlight; 
    scrollbar-shadow-color :#DEE7F8; 
    scrollbar-darkshadow-color :#DEE7F8; 
    scrollbar-base-color : #BFD5FF; 
    scrollbar-track-color :threedhighlight;
}
Copy after login

The above is how to make the scroll bar color compatible with IE8 and IE10? For more details, please pay attention to other related articles on the php Chinese website!

Related articles:

DIV implements automatic scrolling function and scroll bar color modification

CSS code to set div scroll bar color

Solution to the problem that the scroll bar color cannot be set in IE6

Related labels:
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template