電子書籍の厳選無料作品が豊富!

最初からテーブルを一番上に持ってくるにはどうしたら良いですか?CSSで設定するのでしょうか?
【】で囲ってある部分を最初から上にしたいのです。入れ子のようにしてテーブルを挿入すると必ず真中になってしまいます。


<table width=\"800\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" height=\"500\">
<tr bgcolor=\"#FFFF00\">
<td valigin=\"top\" valign=\"top\" colspan=\"4\" height=\"64\"> 
</tr>
<tr>
<td colspan=\"3\" height=\"2\">  </td>
</tr>
<tr>
【<td width=\"170\">
<table width=\"170\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td> </td>
</tr>
</table>】
</td>
<td width=\"238\" height=\"352\"> </td>
<td width=\"197\"> </td>
</tr>
<tr>
<td colspan=\"3\">
</td>
</tr>
</table>

A 回答 (2件)

 こういうことですか、↓



<table width="800" border="1" cellspacing="0" cellpadding="0" height="500">
<tr bgcolor="#6666FF">
<td valign="top" colspan="3" height="64">
<table width="170" border="1" cellspacing="0" cellpadding="0" bgcolor="#66FF66">
<tr>
<td height="30">新たな内TABLEの中<br>(この青い行内は追加)</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFF00">
<td valign="top" colspan="3" height="64">元の1行目</TD>
</tr>
<tr>
<td colspan="3" height="2">元の2行目</td>
</tr>
<tr>
<td width="170">
<table width="170" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFCCCC">
<tr>
<td>内のTABLEの中</td>
</tr>
</table>
</td>
<td width="238" height="352">内のTABLEの右</td>
<td width="197">内のTABLEの右の右</td>
</tr>
<tr>
<td colspan="3">最後の行</td>
</tr>
</table>

 理解できない記述か幾つかあるようです。
 下記のサイトなどを色々と参考にされたらよいと思いますが↓
http://www.tohoho-web.com/html/td.htm
    • good
    • 0

【<td width=\"170\">のタグにvalign="top"


をいれるってことじゃないですか?

で、なんでエスケープしてるんでしょう。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!