1 回答
TA貢獻(xiàn)1866條經(jīng)驗(yàn) 獲得超5個(gè)贊
使用 SVG 版本就不會(huì)出現(xiàn)此問題??s放 SVG 比縮放文本更好:
.container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.parent {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
}
svg {
cursor: pointer;
transition: transform 0.2s;
}
svg:hover {
transform: scale(1.2);
}
<script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js"></script>
<div class="container">
<div class="parent">
<i class="fa fa-eye" id="single-item-eye"></i>
</div>
</div>
- 1 回答
- 0 關(guān)注
- 193 瀏覽
添加回答
舉報(bào)
