微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

多种弹出窗口,弹出层,包括ajax,图片等载入

多种弹出窗口,弹出层,包括ajax,图片等载入

本例用到的css和js文件请到演示页面查看源码获取


XML/HTML Code
  1. <divclass="container">
  2. divclass="jumbotron">
  3. divclass="btn-group">
  4. aclass="btnbtn-default"href="#"data-featherlight="#fl1">Default</a>
  5. aclass="btnbtn-default"href="#"data-featherlight="#fl2"data-featherlight-variant="fixwidth">CustomStyles</a>
  6. aclass="btnbtn-default"href="http://www.freejs.net/images/logo.png"data-featherlight="image">Image</aclass="btnbtn-default"href="#"data-featherlight="#fl3">iFrame</aclass="btnbtn-default"href="index.html.ajaxcontent"data-featherlight="ajax">Ajax</</div>
  7. div>
  8. divclass="rowmarketingtext-center"></
  9. divclass="lightBox"id="fl1">
  10. h2>featherlightDefault</h2>
  11. p>
  12. ThisisadefaultfeatherlightlightBox.It'sflexibleinheightandwidth.EverythingthatisusedtodisplayandstyletheBoxcanbefoundinthefeatherlight.cssfilewhichisprettysimple.
  13. divclass="lightBox"id="fl2">
  14. h2>featherlightwithcustomstyles</h2>
  15. p>It'seasytooverridethestylingoffeatherlight.Allyouneedtodoisspecifyanadditionalclassinthedata-featherlight-variantofthetriggeringelement.Thisclasswillbeaddedandyoucanthenoverrideeverything.YoucanalsoresetallCSS:<em>$('.special').featherlight({resetCss:true});</em>
  16. iframeclass="lightBox"src="http://www.freejs.net/"width="500"height="281"id="fl3"style="border:none;"webkitallowfullscreenmozallowfullscreenallowfullscreen></iframe>
  17. divclass="ajaxcontentlightBox">
  18. h2>ThisLigthBoxwasloadedusingajax</p>Withlittlecode,youcanbuildlightBoxesthatusecustomcontentloadedwithajax...</p>
  19. div>


原文地址: http://www.freejs.net/article_jquerywenzi_171.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐