Home > Article > Web Front-end > How to distinguish different IE versions in stylesheet? How to make the scroll bar color compatible with IE8 and IE10?
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; }
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; }
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