display:inline 问题

fzfei2 2008-07-26 02:28:23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<style type="text/css">
.inline{display:inline; zoom:1}
</style>
___<div class="inline">aaa</div>
<div class="inline">bbbb</div>___

<br />
<font color=red> 怎么便下面两个div 在同一行,和上面的效果一样</font>
<br />
___<div class="inline"><table width="200" border="0">
<tr>
<td>aaaa</td>
</tr>
</table>
</div>


<div class="inline"><table width="200" border="0">
<tr>
<td>bbbb</td>
</tr>
</table>

</div>___
</body>
</html>
那位高手帮我排一下
...全文
80 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tantaiyizu 2008-07-26
  • 打赏
  • 举报
回复
float:left
Zero_Vicky 2008-07-26
  • 打赏
  • 举报
回复
你的代码里少元素!</table> 和哪个是一对?
sjmlsxp 2008-07-26
  • 打赏
  • 举报
回复
给上宽度看看

61,112

社区成员

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

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