2022年5月19日
-
<i class="icon">要插入的圖片</i>
<style>
.icon{
width:10px;
height:10px;
font-style:normal;
}
.icon img{
max-width:100%;
min-height:100%;
display:block;
font-size:0;
}
</style>
<div class="icon">
<img src="..">
</div>
<style>
img{
position:absolute;
clip: rect(上邊距, 右邊距, 下邊距, 左邊距);
}
</style>