1
下面是我的代碼:重寫垂直對齊屬性
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr>
<td width="31%" align="center" valign="middle">
<a href="http://google.com/"></a>
</td>
<td width="69%" valign="top">
Terms and conditions
<sup>#</sup>
</td>
</tr>
</table>
superscript
不工作(#是不是頂部它在同一條線上條款&條件。文本)。
我的猜測是vertical-align
的superscript
正在被table
屬性覆蓋。
下面是從Web開發人員抓獲table
屬性默認使用樣式表。我還拍下了sup
。我沒有看到它的價值在Web開發人員中被削弱了。
tbody {
display: table-row-group;
vertical-align: middle;
border-color: inherit;
}
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
td, th {
display: table-cell;
vertical-align: inherit;
}
td[Attributes Style] {
width: 31%;
text-align: -webkit-center;
vertical-align: middle;
}
sup {
vertical-align: super;
font-size: smaller;
}
如果我把sup
外table
屬性,它工作正常。我怎樣才能讓我的sup
內table
工作?