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