| 贵 州 学 习 网 |
|
xhtml下不能直接填加表格背景图片了,否则报错。如下: 我在dw下验证的结果是: 严重性 文件 描述 行 错误 d:\asp\maxfile\test\top.html 标签“td”在当前活动版本中不具有属性“background”。 错误的代码是这样的 | css中: #aaaa { background-image: url(images/top_06.gif); } 如果不希望重复 加上 background-repeat: no-repeat; 另外有一点要注意的,每个id只能在同一页面使用一次,否则会出错。 下面为maxfile.cn网站top使用的css .table { border-right-width: 1px; border-right-style: solid; border-right-color: #cccccc; } #top_bg { background-image: url(images/top_06.gif); } #top_bg_ { background-image: url(images/top_06.gif); } #top_bg2 { background-image: url(images/top_32.gif); } #top_bg2_2 { background-image: url(images/top_32.gif); } #top_bg2_3 { background-image: url(images/top_32.gif); } #top_bg3 { background-image: url(images/top_40.gif); } |
责任编辑:gzu521