1
我在這裏是新的在此先感謝。我如何在Ipad中心圖像
我怎樣才能中心對齊頂部滑塊圖像在ipad現在圖像左對齊。
請參閱下面的鏈接,
http://psd2htmlexpert.com/examples/Baytreefloristhtml/
親切的問候,
我在這裏是新的在此先感謝。我如何在Ipad中心圖像
我怎樣才能中心對齊頂部滑塊圖像在ipad現在圖像左對齊。
請參閱下面的鏈接,
http://psd2htmlexpert.com/examples/Baytreefloristhtml/
親切的問候,
要居中的圖像,你可以使用這個片段:
img {
display: block;
margin: 0 auto;
width: 80%;
}
圖像是內聯元素作爲默認設置,以便您需要在調整邊距之前將其設置爲塊元素。 auto
只是簡單地劃分元素的每一邊的邊緣,因此最終在中間。
(我加了寬度:80%;因爲它不能同樣廣泛,因爲它的父,因爲那時將沒有利潤留下來劃分)
我已經加入這一點,但它的不工作。 .top_slideshow .slidesbox img {display:block; margin:auto; 位置:相對; text-align:center; } – Shobi