2009-11-23 18 views

cevap

14

buraya bakın konumlandırma konusunda burada https://developer.mozilla.org/en/understanding_css_z-index

bir makale z-index ve kullanabilirsiniz hakkında bir rehber. http://jsbin.com/univa

<html> 
<head> 
    <style type="text/css"> 
     .under 
     { 
      position:absolute; 
      left:0px; 
      top:0px; 
      z-index:-1; 
     } 
     .over 
     { 
      position:absolute; 
      left:40px; 
      top:10px; 
      z-index:-1; 
     } 
    </style> 
</head> 

<body> 
    <img src="https://tafttest.com/184x46.png" width="184" height="46" class="under" /> 
    <img src="https://tafttest.com/100x84.png" width="100" height="84" class="over" /> 
</body> 
</html> 
+1

güzel bir ex ... :) –

+0

Css sihirli mükemmel parça – Cid

0

position:relative modelini kullanabilir ve right:30px, bottom:30px adreslerini ayarlayabilir, bu da 30 piksele kadar sola ve kaydırır.

CSS: Eğer yukarıda yer almasını istediğiniz eleman ihtiyacı

.icon{ 
position:relative; 
right:30px; 
bottom:30px; 
} 
3

Yani küçük bir simge 2 z-index olurdu daha yüksek bir z-index

olması ve görüntüleri olur İşte

.icon { 
    z-index: 2; 
    position: relative; 
    left: 30px; 
    top: 30px; 
} 

.images { 
    z-index: 1; 
} 
İlgili konular