jQuery代碼實現對話方塊右上方菜單帶關閉×_jquery

來源:互聯網
上載者:User

先給大家展示下效果圖,具體效果圖如下所示,如果大家覺得還不錯,請參考實現代碼:

代碼如下:

<!DOCTYPE html><html><head><meta charset="utf-8" /><title>jQuery對話方塊右上方帶關閉× - 何問起</title><base target="_blank" /><!-- Attach our CSS --><link rel="stylesheet" href="http://hovertree.com/texiao/layer/1/reveal.css"><!-- Attach necessary scripts --><script type="text/javascript" src="http://down.hovertree.com/jquery/jquery-1.4.4.min.js"></script><script type="text/javascript" src="http://hovertree.com/texiao/layer/1/jquery.reveal.js"></script><style type="text/css">body {font-family: "HelveticaNeue","Helvetica-Neue", "Helvetica", "Arial", sans-serif;}.big-link {display: block;margin-top: 50px;text-align: center;font-size: 30px;background-color:#eeeeee;color: #06f;}.hovertreeinfo{text-align:center;} .hovertreeinfo a{color:darkcyan;}</style></head><body><div class="hovertreeinfo"><h1>jQuery彈出可關閉層提示框</h1></div><a href="http://hovertree.com/h/bjaf/ati6k7yk.htm" class="big-link" data-reveal-id="myModal">Demo 1</a><a href="http://hovertree.com/hvtart/bjae/lhnydfey.htm" class="big-link" data-reveal-id="myModal" data-animation="fade">Demo 2</a><a href="http://hovertree.com/hvtart/bjae/vgte3y3a.htm" class="big-link" data-reveal-id="myModal" data-animation="none">Demo 3</a><div id="myModal" class="reveal-modal"><h1>jquery匯出層</h1><p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.推薦使用Demo 1,和Demo 3兩種方式。何問起 hovertree.com</p><a class="close-reveal-modal">×</a></div><div class="hovertreeinfo">推薦使用Demo 1,和Demo 3兩種方式.<br /><a href="http://hovertree.com/h/bjaf/tishiceng.htm">原文</a> <a href="http://hovertree.com">首頁</a><a href="http://hovertree.com/texiao/">特效</a><br />by 何問起hovertree.com<br /><!--<img src="http://hovertree.com/texiao/layer/1/modal-gloss.png" />--></div></body></html>

以上所述是小編給大家介紹的jQuery代碼實現對話方塊右上方菜單帶關閉×的相關內容,希望對大家有所協助!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.