把一个图片放入一个表格里,如何能让其只显示一个呢?

youfacheerup 2006-01-03 04:05:59
我用background=“”结果上上下下显示了好几个,
这是为什么呢?


是要改变图像大小?
还是要添加什么表格属性呢?

谢谢各位大侠:)
...全文
178 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fibona 2006-01-03
  • 打赏
  • 举报
回复
<style type="text/css">
.style_center {
background-image: url(/images/index_magazine_back02.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
}
</style>

<td height="100" width="100" class='style_center'></td>
刚才打错字了,不好意思
Fibona 2006-01-03
  • 打赏
  • 举报
回复
<style type="text/css">
.style_center {
background-image: url(/images/index_magazine_back02.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
}
</style>

<td height="100" width="100" class='center'></td>
刚才打错字了,不好意思
Fibona 2006-01-03
  • 打赏
  • 举报
回复
<!--style-->
.style_center {
background-image: url(/images/index_magazine_back02.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
}
<!--style-->


<td height="100" width="100" class='center'></td>
acong110 2006-01-03
  • 打赏
  • 举报
回复
<td height="100" width="100" background="test.gif" style="background-repeat:no-repeat"></td>

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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