如何从大栏的第一行开始写作 [HTML/CSS]
How to start writing from the top line in a large column [HTML/CSS]
抱歉问了这么基础的问题。但是我不知道怎么做。
我有一个 table 的大列(高度:370 像素),在输入内容时,它从中心线开始。如何让它从顶行本身开始写作。 [这是一个原型代码,所以没有去掉边框(为了便于理解)]
<table border="1" cellspacing="10px;" style="width: 100%;">
<tr class="row">
<td class="column" style=" background-image: url(https://d1nslcd7m2225b.cloudfront.net/Pictures/480xAny/8/0/3/1206803_Intersetellar.jpg);">
1.INTERSTELLAR
</td>
<td class="column">ieuwhiuew</td>
<td class="column">ieuwhiuew</td>
<td class="column">ieuwhiuew</td>
</tr>
.row {height: 320px;}
.column {width: 370px;
background-size: 370px 320px;
color: white;
font-size: 30px;
text-align: top;}
使用vertical-align: top;
代替text-align: top;
抱歉问了这么基础的问题。但是我不知道怎么做。 我有一个 table 的大列(高度:370 像素),在输入内容时,它从中心线开始。如何让它从顶行本身开始写作。 [这是一个原型代码,所以没有去掉边框(为了便于理解)]
<table border="1" cellspacing="10px;" style="width: 100%;">
<tr class="row">
<td class="column" style=" background-image: url(https://d1nslcd7m2225b.cloudfront.net/Pictures/480xAny/8/0/3/1206803_Intersetellar.jpg);">
1.INTERSTELLAR
</td>
<td class="column">ieuwhiuew</td>
<td class="column">ieuwhiuew</td>
<td class="column">ieuwhiuew</td>
</tr>
.row {height: 320px;}
.column {width: 370px;
background-size: 370px 320px;
color: white;
font-size: 30px;
text-align: top;}
使用vertical-align: top;
代替text-align: top;