多种弹出窗口,弹出层,包括ajax,图片等载入
XML/HTML Code
- <divclass="container">
- divclass="jumbotron">
- divclass="btn-group">
- aclass="btnbtn-default"href="#"data-featherlight="#fl1">Default</a>
- aclass="btnbtn-default"href="#"data-featherlight="#fl2"data-featherlight-variant="fixwidth">CustomStyles</a>
- 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>
- div>
- divclass="rowmarketingtext-center"></
- divclass="lightBox"id="fl1">
- h2>FeatherlightDefault</h2>
- p>
- ThisisadefaultfeatherlightlightBox.It'sflexibleinheightandwidth.EverythingthatisusedtodisplayandstyletheBoxcanbefoundinthefeatherlight.cssfilewhichisprettysimple.
- divclass="lightBox"id="fl2">
- h2>Featherlightwithcustomstyles</h2>
- p>It'seasytooverridethestylingofFeatherlight.Allyouneedtodoisspecifyanadditionalclassinthedata-featherlight-variantofthetriggeringelement.Thisclasswillbeaddedandyoucanthenoverrideeverything.YoucanalsoresetallCSS:<em>$('.special').featherlight({resetCss:true});</em>
- iframeclass="lightBox"src="http://www.freejs.net/"width="500"height="281"id="fl3"style="border:none;"webkitallowfullscreenmozallowfullscreenallowfullscreen></iframe>
- divclass="ajaxcontentlightBox">
- h2>ThisLigthBoxwasloadedusingajax</p>Withlittlecode,youcanbuildlightBoxesthatusecustomcontentloadedwithajax...</p>
- div>
原文地址: http://www.freejs.net/article_jquerywenzi_171.html 原文链接:https://www.f2er.com/ajax/164233.html