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

前端之家收集整理的这篇文章主要介绍了多种弹出窗口,弹出层,包括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 原文链接:https://www.f2er.com/ajax/164233.html

猜你在找的Ajax相关文章