2016-04-21 153 views
0

我有以下表格要求的源代码。我想从表格的开头插入数据,但是我无法这样做,因为它从表格的中间开始。如何输入数据,以便我可以从头开始。这里是我的代码:Html表格:插入数据

<html> 
<head> 
<link rel="stylesheet" type="text/css" href="mystyle.css"> 
<title>Title</title> 
<table style="width: 665px; height: 589px;" border="1"> 
<tbody> 
<tr style="height: 49px;"> 
<td style="width: 664px; height: 49px;" colspan="2"><img src="#"> 
<p align="right"><a href="http://www.google.com" target="_blank">Google it!</a></p> 
</td> 
</tr> 
<tr style="height: 117px;"> 
<td style="width: 223.85px; height: 117px;">A</td> 
<td style="width: 440.15px; height: 117px;">B</td> 
</tr> 
<tr style="height: 120px;"> 
<td style="width: 223.85px; height: 120px;">C</td> 
<td style="width: 440.15px; height: 244px;" rowspan="2">D</td> 
</tr> 
<tr style="height: 124px;"> 
<td style="width: 223.85px; height: 124px;">E</td> 
</tr> 
<tr style="height: 173px;"> 
<td style="width: 223.85px; height: 173px;">F</td> 
<td style="width: 440.15px; height: 173px;">G</td> 
</tr> 
</tbody> 
</table> 

而且我想调整根据自己的文字,但在我的情况栏,它会自动调整大小时,一个增加。如何在我的情况下创建拆分这两列?

+0

你正在谈论的文字在单元格中,对吗? –

+0

是这样的https://jsfiddle.net/LeoLion/ejxazd6u/ –

+0

是的文字@Leothelion – highlander141

回答

1

如果你想在池的顶部您的数据,然后使用vertical-align:top;

在你的餐桌,所有的TD使用:

td{vertical-align: top;} 

检查fiddle