Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8664

HTML_4 表 テーブル

$
0
0

テーブル

<tableborder="5"bordercolor="色" bgcolor="yellow" width="100px"height="200px" cellpadding="10"> 
// 枠線の太さ、色の指定 背景色 表のサイズ セルの余白
    <tr><th>名前</th><th>年齢</th></tr><tr><td>高橋</td><td>23</td></tr><tr><td>佐藤</td><td>22</td></tr></table>

セルを結合

//横方向に結合する
<tdcolspan="2">apple</td>
//縦方向に結合する
<tdrowspan="2">りんご</td>

文字のレイアウト

<tralign="left"> //左寄せ
<tralign="center"> //中央
<tralign="right"> //右寄せ

Viewing all articles
Browse latest Browse all 8664

Trending Articles