2016-06-30 4 views
0

이것이 가능합니까? 내가 위에 겹치기를 원할 때 z-index: 999;을 설정해 보았습니다. 그렇지만 행운은 없습니다. iframe의 Z- 인덱스 iframe

은 기본적으로 내가 #cDiv

스타일에 #cgdiv를 중복하는 것을 시도하고있다 :

  #cgDiv { 
       z-index:999; 
       display: inline-block; 
       height: 100%; 
       vertical-align: top; 
       width: 30%; 
      } 

      #contentGenerator, #content { 
       height: 100%; 
       width: 100%; 
      } 

      #cDiv { 
       z-index:998; 
       display: inline-block; 
       height: 100%; 
       vertical-align: top; 
       width: 69.5%; 
      } 

      body { margin: 0} 

HTML을

  <HTML> 
      <HEAD> 


      </HEAD> 
      <BODY > 
      <DIV id="cgDiv"> 
       <IFRAME id="contentGenerator" src="content.html"> 
       </IFRAME> 
      </DIV> 
      <DIV id="cDiv"> 
       <IFRAME id="content" src="startNSM.html"> 
       </IFRAME> 
      </DIV> 
      </BODY> 
      </HTML> 

답변

0

예를. 당신은 position:absolute 설정하고 top:0

https://jsfiddle.net/qvct1tnm/2/

+0

@ed 렌은 당신을 위해 그 일이? PLZ 응답 않는 그들을

position: absolute; top: 0; 

이 바이올린 예를 볼 겹쳐 –