背景图象垂直向上,水平居中怎么写?急

castle2003 2003-10-21 01:50:02
不平铺,而且要原大的。

<body bgcolor="#FFFFFF" background="images/bg.jpg" >

怎么改?
...全文
72 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
castle2003 2003-10-21
  • 打赏
  • 举报
回复
<style>
body{
background-attachment: fixed;
background-image: "images/gbddq.jpg";
background-repeat: no-repeat;
background-position: center top;

}
</style>


为什么打开index.htm无法显示图象?
  • 打赏
  • 举报
回复
<style>
body{
background-attachment: fixed;
background-image: url(图片路径名称);
background-repeat: no-repeat;
background-position: center top;

}
</style>
castle2003 2003-10-21
  • 打赏
  • 举报
回复
怎么没有?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧