我被卡住了,無論<a>
標籤字體大小是多少,我該如何垂直居中箭頭?CSS垂直對齊中心字體真棒圖標爲文字
body {
font-family: Arial, 'sans-serif';
}
a {
font-weight: 500;
font-size: 30px;
color: #000;
}
i {
font-size: 12px !important;
font-weight: 300;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<div>
<a href="#">View Full Chart <i class="fa fa-chevron-right" aria-hidden="true"></i></a>
</div>
使用垂直對齊:中間;爲我的標籤 –