最近、ナビゲーションドロップダウンメニューをコーディングしています。
どこにでもstyle="vertical-align: middle;"
を追加します。
イメージとテキストは、依然として垂直に中央に配置されません。
テーブルがまだ必要なので、私はさらにtd
を追加できます。
私はやってみました、誰かが親切に私を助けてくれますか?スタイリング - tdタグ内のタグ内にイメージとテキストを垂直に整列させる
<style>
a:hover {
background-color: rgba(203, 227, 255, 0.625) !important;
}
</style>
<table align="center" class="exc">
<tr>
<td class="null" style="white-space:nowrap; vertial-align: middle; overflow:hidden; border-radius: 50px; border: 2px solid #87ceeb !important; background-color: rgba(224, 255, 255, 0.625);">
<a href="https://example.com" style="display:inline-block; text-decoration: none; color: #6699cc;">
<font size="6"> 
<img src="http://icons.iconarchive.com/icons/graphicloads/100-flat/128/home-icon.png" width="48px" style="vertial-align: middle; width=100%; height:100%;" />
 HOME   </font>
</a>
</td>
<td class="null" style="white-space:nowrap; vertial-align: middle; overflow:hidden; border-radius: 50px; border: 2px solid #87ceeb !important; background-color: rgba(224, 255, 255, 0.625);">
<a href="https://example.com" style="display:inline-block; width=100%; height:100%; text-decoration: none; color: #6699cc;">
<font size="6">   HOME   </font>
</a>
</td>
</tr>
</table>
寛大なお手伝いをしていただきありがとうございます。 – Louis55
@ ll55それは私の喜びです! –