我正在設計一個頁面,它需要一個帶有加號圖像的水平條形中心。 LKE此, Horizantal酒吧加中心圖像?
我已經試過了,
<div><img src="http://s7.postimage.org/z6jiogw6f/add_icon.png" /></div>
div{
background: #ced8e7;
padding: 1px 0;
position: relative;
text-align: center;
overflow-x: hidden;
}
但酒吧不是圓形的,再加上形象完全是酒吧內。誰能幫忙?樣品,http://jsfiddle.net/PSAEJ/
如何使它圓形邊緣處? – user960567
@surinder - 你不能定義'margin-left:-27px' static。因爲並非所有的分辨率都會使圖像成爲中心。 –
@ user960567請檢查我是否已更新。 –