Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[求助] 求助。html和body分别使用不同的背景文件为什么在1.5不显示?

[复制链接]
addlm 发表于 2011-1-10 14:21:42 | 显示全部楼层 |阅读模式
本帖最后由 addlm 于 2011-1-18 17:48 编辑
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>

  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <title>新建网页 2</title>
  6. <style>
  7. *{padding:0;margin:0;}
  8. html{height:100%;background:#efefef url('http://www.xxx.com/static/image/common/nv.png') repeat-x center top;}
  9. body{height:100%;background:transparent url('http://www.xxx.com/template/2010/images/bg4.png') no-repeat center top;}
  10. </style>
  11. </head>

  12. <body>
  13. <div style="height:100%;"></div>
  14. </body>

  15. </html>
复制代码
大家看上面这段代码,明明在HTML中可以使用。
但是在DX1.5里面我修改了页头文件。却只显示body的背景。html的背景不显示、
另外我是想时间双层背景叠加!
底层背景用 repeat-x 平铺。父背景用 no-repeat
都用透明图片。让两层背景都能显示
请问各位还有其他方法实现这个功能没?

回复

使用道具 举报

 楼主| addlm 发表于 2011-1-10 14:31:33 | 显示全部楼层


没有人啊??
回复

使用道具 举报

xmmoer 发表于 2011-1-10 14:42:44 | 显示全部楼层
有需要可以联系我们 。
回复

使用道具 举报

 楼主| addlm 发表于 2011-1-10 14:49:56 | 显示全部楼层


LS的太无语了。。
回复

使用道具 举报

茶钱饭后 发表于 2011-1-13 01:16:30 | 显示全部楼层
不是很了解
回复

使用道具 举报

xmmoer 发表于 2011-1-13 19:49:41 | 显示全部楼层
有需要可以联系我们 。
回复

使用道具 举报

沐青年华 发表于 2011-1-13 19:54:52 | 显示全部楼层
路过
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-6 21:36 , Processed in 0.083786 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表