1

この単純な HTML テーブルがあります。

<table align="center" border="1" cellpadding="0" cellspacing="0" style="width:1000px">
    <thead>
        <tr>
            <th scope="row">BB<br />
            BB<br />
            BB</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
            <th scope="col">AA</th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>

<p>&nbsp;</p>

しかし、私は AA セルを垂直に上に並べたい (現在は中央に垂直に並べている)、また、テーブルの上のスペースを空けてテーブルを 0 のままにしたい.

簡単なコードを html でレンダリングすると、意味が理解できます。

簡単な CSS をリンクしてこの機能を作成したいのですが、どうすれば作成できますか?

更新、CSSの解決策は次のとおりです。

th{
vertical-align:top;
}
body
{
    margin: 0;
    padding: 0;
} 
4

3 に答える 3