我有一个问题...
我为我的站点创建了表格(一行一列),然后我使用 CSS
为 table
设置了背景,我在其中定义了图像,之后我尝试在第一个表中创建另一个包含 3 行的表,Dreamweaver 不允许我这样做,它将新表放在第一个之后,我该如何解决这个问题,在此先感谢...
<table width="1158" height="1193" border="0" align="center" class="img_fixed">
<tr>
<td>
<table width="1000" border="0">
<tr>
<th width="1152" height="1189" scope="col"><div align="center"></div></th>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</table>
最佳答案
它工作正常你的问题是什么?我发布了该代码的示例
<table width="100%" height="300" border="0" cellspacing="0" cellpadding="0" style="background-image:url(book1.png)">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</table>
</td>
</tr>
</table>
乐高你的代码必须是这样的,
<table width="1158" height="1193" border="0" align="center" class="img_fixed">
<tr>
<td>
<table width="1000" border="0">
<tr>
<th width="1152" height="1189" scope="col"><div align="center"></div></th>
</tr>
<tr> <td> </td> </tr>
<tr> <td> </td> </tr>
</table>
</td>
</tr>
</table>
关于HTML,<表格>背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2772012/