超简单的弹出层
XML/HTML Code
- <button class="btn-modal" aria-haspopup="true">Open Modal</button>
- <!-- Modal Box -->
- <div class="mask" role="dialog"></div>
- <div class="elegant-modal" role="alert">
- <button class="close" role="button">X</button>
- <!-- Content -->
- <h1 class="title-modal">Modal Content</h1>
- <hr class="line-modal">
- <p class="paragraph-modal">这个是一个隐藏的层,弹出后显示</p>
- <button class="content-button-close">CLOSE (:</button>
- </div>
原文地址:http://www.freejs.net/article_jquerywenzi_527.html