span如何直接跟在Table右边?

李必胜 2008-01-11 02:52:14
下边的11111111111111,如何直接跟在前面那个Table的右边

<html>
<TABLE WIDTH=80%>
<TR> <TD COLSPAN=3 ALIGN="center"><H2>This is an Overall Title</h2></TD> </TR>
<TR>
<TD ALIGN="center" VALIGN="center">

<TABLE BORDER=4 CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center">Subheading One </TD> </TR>
<TR> <TD>Item 1 </TD> <TD> Item 2 </TD> </TR>
</TABLE>
<span>11111111111111</span>

</TD>
<TD WIDTH=20%> </TD>
<TD ALIGN="center" VALIGN="center">
<TABLE BORDER=4 CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center">Subheading Two </TD> </TR>
<TR> <TD>Item 3 </TD> <TD> Item 4 </TR>
</TABLE>
</TD>
</TR>
</TABLE>
</html>
...全文
189 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhaoxiaoyang5156 2008-01-11
  • 打赏
  • 举报
回复
<html>
<TABLE WIDTH=80%>
<TR> <TD COLSPAN=3 ALIGN="center"> <H2> This is an Overall Title </h2> </TD> </TR>
<TR>
<TD ALIGN="center" VALIGN="center">

<TABLE BORDER=4 align="left" CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center"> Subheading One </TD> </TR>
<TR> <TD> Item 1 </TD> <TD> Item 2 </TD> </TR>
</TABLE>
<span> 11111111111111 </span> </TD>
<TD WIDTH=20%> </TD>
<TD ALIGN="center" VALIGN="center">
<TABLE BORDER=4 CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center"> Subheading Two </TD> </TR>
<TR> <TD> Item 3 </TD> <TD> Item 4 </TR>
</TABLE>
</TD>
</TR>
</TABLE>
</html>
這樣可以,不過 你寫的代碼過時了啊。
yixianggao 2008-01-11
  • 打赏
  • 举报
回复
L@_@K
<!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>
<title>new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
</head>
<body>
<table width="80%" align="center">
<tr>
<td colspan="3" align="center">
<h2>
This is an Overall Title
</h2>
</td>
</tr>
<tr>
<td align="center" valign="center">
<table border="4" cellspacing="8" style="float: left;">
<tr>
<td colspan="2" align="center">
Subheading One
</td>
</tr>
<tr>
<td>
Item 1
</td>
<td>
Item 2
</td>
</tr>
</table>
<span style="float: left;">11111111111111</span>
</td>
<td width="20%">
</td>
<td align="center" valign="center">
<table border="4" cellspacing="8">
<tr>
<td colspan="2" align="center">
Subheading Two
</td>
</tr>
<tr>
<td>
Item 3
</td>
<td>
Item 4
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
tantaiyizu 2008-01-11
  • 打赏
  • 举报
回复
<html> 
<TABLE WIDTH=80%>
<TR> <TD COLSPAN=3 ALIGN="center"> <H2> This is an Overall Title </h2> </TD> </TR>
<TR>
<TD ALIGN="center" VALIGN="center">

<TABLE BORDER=4 CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center"> Subheading One </TD> </TR>
<TR> <TD> Item 1 </TD> <TD> Item 2 </TD> </TR>
</TABLE>


</TD>
<TD WIDTH=20%> <span> 11111111111111 </span> </TD>
<TD ALIGN="center" VALIGN="center">
<TABLE BORDER=4 CELLSPACING=8>
<TR> <TD COLSPAN=2 ALIGN="center"> Subheading Two </TD> </TR>
<TR> <TD> Item 3 </TD> <TD> Item 4 </TR>
</TABLE>
</TD>
</TR>
</TABLE>
</html>


这样就可以

61,110

社区成员

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

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