【发布时间】:2011-03-18 00:28:46
【问题描述】:
我有一个表,有一些行和列,这里是第二行的例子
<tr>
<td valign="top" style="width: 150px;">
<h5>MyCity</h5>
</td>
<td valign="top" style="width: 360px;">
<h5 class="store_title">Store Title</h5>
<p>address</p>
</td>
<td class="storeDescriptionCell"><div>Description
</div>
</td>
</tr>
我在我的 CSS 中添加了 storeDescriptionCell
td.storeDescriptionCell{
padding:20px;
}
我什至尝试使用 div,但每次我向单元格或 div 添加边距或填充时,MyCity、Store Title 都会随着描述而下降。我只是希望描述降低。
【问题讨论】:
标签: html css html-table padding