为什么web标准中IE无法设置滚动条颜色了

来源:互联网 发布:linux 查看进程号 编辑:程序博客网 时间:2024/04/30 08:34

 HTML代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/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;
}
-->
</style>

运行此代码

复制此代码

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

解决办法是将body换成html

原创粉丝点击