我正在嘗試使圖像在中間的分隔符。這也是響應。分隔符與中間的圖像圖標
我在顯示圖標/圖像的中間和全尺寸時遇到問題。它似乎切斷了頂部和底部。有人可以看看代碼?
<div class='line-icon'></div>
.line-icon {
text-align: center;
background-image: url('http://www.welzendesign.com/startransfer/wp-content/uploads/2015/10/ster.png');
background-repeat: no-repeat;
background-position: center center;
}
.line-icon::before, .line-icon::after {
width: 25%;
height: 1px;
border-top: 1px solid #837048;
display: inline-block;
content:'';
padding-top: 0.5em;
margin-left: 5%;
margin-right: 5%;
}
https://jsfiddle.net/L5p8khya/
? – Jesse
不顯示圖像也不在圖像的中間:( – Vonwelzen
啊..好吧,你沒有說這些都是在第一篇文章中的問題! – Jesse