0
這裏是我的CSS爲什麼在顯示絕對定位圖像時出現錯誤?
.arrow_l, .arrow_r {
-moz-transition: opacity 0.5s ease 0s;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 2px #aeaeae;
height: 60px;
margin-top: 80px;
position: absolute;
width: 36px;
opacity:.75;
}
.arrow_l {
background: url("../images/arrow.png") no-repeat 10px center,red;
background-size: 116% auto;
}
.arrow_r {
background: url("../images/arrow.png") no-repeat -15px center,red;
background-size: 116% auto;
margin-left:-36px;
}
內容是裏面的包裝用CSS:
.wrapper {
display: inline-block;
padding: 12px;
}
爲什麼右箭頭的推移下,我沒有得到它行,我該如何解決它。
在http://jsfiddle.net上發佈演示。 – Blender
http://jsfiddle.net/rachit_rm/KgNbN/embedded/result/ –
如果您將整個文檔粘貼到jsfiddle中,您將在另一個文檔的body元素中有一個文檔,所以它會中斷。 – Guffa