基于jquery,支持iframe,可改css。
我一直使用colorbox,和fancyBox做弹出层,包括登陆、表单提交、消息提醒。目前觉得这两个组件太庞大了,加载速度明显慢很多,希望找些结构简单小巧的,只应用登陆和消息提醒。
没必要用插件
用过的框架 Foundation 上也有。
或者 单独的的插件Reveal: jQuery Modals Made
http://zurb.com/playground/reveal-modal-plugin
http://sentsin.com/jquery/layer/
这个还是挺好用的
http://v2.bootcss.com/javascript.html#modals
另外bootstrap也是有弹层的
个人觉得prettyphoto很不错
http://jsmodal.com/
eg:http://jsmodal.com/docs/usage.php
一直在用 https://github.com/eyoosuf/jqModal
只是一个弹出层的核心,甚至不带样式,你完全可以自己定制,非常灵活,和 bootstrap 结合什么的也比较方便。
自己写一个岂不是最靠谱
artDialog,一个小巧的插件。
http://jquery.malsup.com/block/
http://aui.github.io/artDialog/
http://jjsp.jinjiang.gov.cn:8888/js/jbox-v2.3/jbox-demo.html
不解释,看效果
- http://bootsnipp.com/tags/modal
- fancybox http://fancybox.net/
- http://www.planeart.cn/demo/artDialog/
https://github.com/component/notification
https://github.com/component/dialog
比国人那些库要设计的灵活小巧的多,重要的是代码很干净,只是component学习成本高些
一直用dialog