请教怎样让几个table自动换行?

zairwolft 2006-05-17 01:50:14
<table width=100% border=1><tr><td>

<table width=500 align=left border=1><tr><td>b</td></tr></table>
<table width=500 align=left border=1><tr><td>b</td></tr></table>
<table width=500 align=left border=1><tr><td>b</td></tr></table>

</td></tr></table>


这种时候,浏览器就会出现横向下拉条。怎样避免这种现象,而让内容中的几个table自动换行?
...全文
257 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
ice_berg16 2006-05-17
  • 打赏
  • 举报
回复
直接加
  
ice_berg16 2006-05-17
  • 打赏
  • 举报
回复
我用的样式是应用到里面的table,不是外层的
zairwolft 2006-05-17
  • 打赏
  • 举报
回复
另外,我想给两个table中间加个空格。怎么加?
zairwolft 2006-05-17
  • 打赏
  • 举报
回复
为何用
<table width=100% border=1 style='float:left;'><tr><td>

<table width=500 border=1><tr><td>b</td></tr></table>
<table width=100 border=1><tr><td>b</td></tr></table>
<table width=400 border=1><tr><td>b</td></tr></table>

</td></tr></table>
就不行了?
ice_berg16 2006-05-17
  • 打赏
  • 举报
回复
<style>
#c table{
float:left;
}
</style>
<table width=100% border=1 id="c"><tr><td>

<table width=500 border=1><tr><td>b</td></tr></table>
<table width=100 border=1><tr><td>b</td></tr></table>
<table width=400 border=1><tr><td>b</td></tr></table>

</td></tr></table>
plcnc2003 2006-05-17
  • 打赏
  • 举报
回复
把你的里面的三个表格的align=left的属性全部去掉
zairwolft 2006-05-17
  • 打赏
  • 举报
回复
margin: 3;
搞定谢谢。
zairwolft 2006-05-17
  • 打赏
  • 举报
回复
直接加不行。会错位的。
afengfu 2006-05-17
  • 打赏
  • 举报
回复
直接加上代码  即可!
ddcatlee 2006-05-17
  • 打赏
  • 举报
回复
我想给两个table中间加个空格。怎么加?

设置table的margin

61,112

社区成员

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

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