div快顯視窗在frameset外層解決方案

來源:互聯網
上載者:User

標籤:style   blog   http   os   io   ar   art   問題   

 
 

            div快顯視窗在frameset外層解決方案             

首頁通過framset經行網頁布局,現在有個臨時的訊息視窗,ajax返回會彈出來。但是這個就有問題了。div作為網頁元素,是依賴與frame的。怎麼讓其在整個視圖視窗的最上層呢? frmae 串連網頁,會對超過的部分進行遮擋。這裡提供了一種解決方案.先記錄下來。

<html> < head> < title>index.jsp</title> < /head> < frameset rows="*" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">        <frame name="divframe" src="call.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" noresize scrolling="no"> < /frameset> < noframes> < body> sorry your browser doesn‘t accept frames < /body> < /noframes> < /html>

首頁div需要覆蓋的frame 放到引入的頁面裡,用iframe調用。

---call.html---

<html> < body>         <div id=‘popId‘ class=‘‘ style="position:absolute;float:left;top=5;left=25;display=‘none‘;z-index:2;"> 彈出div</div>         <iframe src="mainindex.html" width=100% height=100% marginwidth=0> < /body> < /html>

 

--mainindex.html--

<frameset rows="30,*" style="z-index:1">           <frame src="topframe.html" style="z-index:1">    <frameset cols="30,*" style="z-index:1"> 

        <frame src="menuframe.html" style="z-index:1">         <frame src="mainframe.html" style="z-index:1">

  </frameset>       <frame src="footframe.html" style="z-index:1"> < /frameset>

 

    js 動作

   <a onclick="top.divframe.document.getElementById(‘popId‘).style.display=‘block‘">顯示DIv</a>

 

  --the  end!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.