2012-11-18 3 views

답변

0

HTML (2 개 배경 이미지 1, 다른 하나는 고정 스크롤) 할 수있는 방법

<div id="scroll" class="nav">Scrolling</div> 
<div id="fixed" class="nav">Fixed</div> 

CSS :

.nav { 
    top: 0; 
     left: 0; 
     height: 100px; // position and size only example, adjust to your needs 
     width: 100%; 
} 
#scroll { 
     position: absolute; 
     background: url(yourimage.png); 
     z-index:1; 
} 
#fixed { 
    position: fixed; 
    background: url(your2ndimage.png); 
    z-index:0; 
    } 

이 창은 후 #FIXED 배경 만 표시 할 것 아래로 스크롤되었습니다 ...

관련 문제