学习网考试学习资料

Gzu521.com

关于网站设计标准XHTML填加表格背景图片的问题

Javascript教程   点击:次   发布时间:2006-7-13   【字体: 】   来源:Gzu521.com
贵 州 学 习 网


处理方法:
CSS 中定义背景
xhtml 中
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

网页设计分类
HTML教程
CSS教程
Javascript教程
Dreamweaver教程
FrontPages教程
FireWorks教程
Flash教程
PhotoShop教程
建站知识
分类推荐信息
更多...
大类最新文章
更多...