repeat-y 在height:100% 为什么不起作用?

annjoy303 2009-11-05 04:18:19
当我给 td 设置高度为 450px 时候,repeat-y 就起作用了,这是为什么??



<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Left</title>
</head>
<body style="background-color:#e3eeff; margin:0; padding:0;">
<form id="form1" runat="server">
<table width="204" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="27" style="width: 203px"><img src='Images/left-1.gif' width="200" height="27"></td>
<td rowspan="3" style="background-color:#e3eeff;"></td>
</tr>
<tr>
<td height="450px" valign="top" style="background-image:url('Images/left-bj.gif'); background-repeat:repeat-y; overflow:auto; width : 203px" >
<br />
<asp:TreeView ID="TreeView1" runat="server" ExpandDepth="0">
</asp:TreeView>
</td>
</tr>
<tr>
<td height="19" style="width: 203px"><img src='Images/left-2.gif' width="200" height="19"></td>
</tr>
</table>
</form>
</body>
</html>



我的这个页面是放在 一个 iframe 中的。


谢谢!!
...全文
404 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
yoyoyuye 2009-12-28
  • 打赏
  • 举报
回复
看看<html xmlns="http://www.w3.org/1999/xhtml" >
这个换成dw8的。
lzz624 2009-12-28
  • 打赏
  • 举报
回复
我试了你的代码,不用给它加高度,repeat-y也起作用了呀?高度是满屏的
bhbhxy 2009-12-28
  • 打赏
  • 举报
回复
height:100%是多高?
laen 2009-12-28
  • 打赏
  • 举报
回复
经测试,你的代码没有问题,repeat-y是起作用的。
wucaijuan 2009-12-28
  • 打赏
  • 举报
回复
在浏览器中,width有默认值,height是没有默认值的。
当使用100%时一般要设置body、html为100%;
调皮的蟠桃 2009-12-28
  • 打赏
  • 举报
回复
background-repeat:背景图象的平铺 ,repeat-y :  背景图像在纵向平铺,这些需要写在一个单独的css文件中,在引用泽火革css文件,这样试试呢。
弘毅致远 2009-12-27
  • 打赏
  • 举报
回复
帮顶下。
annjoy303 2009-12-27
  • 打赏
  • 举报
回复
annjoy303 2009-11-13
  • 打赏
  • 举报
回复
顶个!
annjoy303 2009-11-05
  • 打赏
  • 举报
回复
自己顶!

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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