如果你用最新的DW MX 2004
你新建一个页面 在里面填加〈STYLE〉定制滚动条样式的时候 会发现不起作用,
启动2004 自动的浏览器支持检查器, 会发现有7个浏览器支持错误
错误 CSS 属性 SCROLLBAR-3DLIGHT-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-ARROW-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-DARKSHADOW-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-FACE-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-HIGHLIGHT-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-SHADOW-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
错误 CSS 属性 SCROLLBAR-TRACK-COLOR 不受支持
Netscape Navigator 4.0, Netscape Navigator 6.0, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0
这个是因为 定制滚动条的CSS 并非WWW 联合会为制定的HTML正式规范中的内容。
检查页面代码会发现2004自动在文件头部加入了
这样是为了页面代码的规范检查,所以滚动条样式不会显示
如果想滚动条样式正确显示,去掉"http://www.w3.org/TR/html4/loose.dtd" 就可以了
但是只有IE 5.5和IE6.0对这种 不规范代码支持~~ 别的浏览器不会支持不属于W3C规定的正式规范的代码