位置:首頁 > 軟件操作教程 > 編程開發(fā) > HTML > 問題詳情

html特效代碼 12。保持layer在最前面,而不被Iframe、Object所覆蓋

提問人:劉團圓發(fā)布時間:2020-11-02

 在Layer中再插Iframe 或 Object 設(shè)z-Index值 

  <div z-Index:2><object xxx></object> # 前面 

  <div z-Index:1><object xxx></object> # 后面 

  <div id="Layer2" style="position:absolute; top:40;width:400px; 

  height:95px;z-index:2"> height=100% width=100%> 

  <iframe width=0 height=0></iframe> 

  </div> 

  <div id="Layer1" style="position:absolute; top:50;width:200px; 

  height:115px;z-index:1"> 

  <iframe height=100% width=100%></iframe> 

  </div> 

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(0)
返回頂部