這裏是我的html如何放置的圖像上的圖像的右下角不有一套大小
<div class="container">
<img src="something" class="avatar"/>
<div class="edit_photo">Edit</div>
</div>
「edit_photo」有一個形象上的背景。 img標籤尺寸未設置,因此它可能是任何東西。但我希望「edit_photo」div始終位於img的右下角。這可能與CSS?我想不出有辦法做到這一點。 img標籤需要始終是img標籤,我無法將其更改爲div。
謝謝!
這不會與IMG是任何尺寸,因爲父.container是工作一個塊元素和它內部的圖像是一個內聯元素。 – Fernker 2013-04-11 17:59:43