JQuery weui 中的Popup (弹出层:底部)

时间:2024-09-07 20:08:02

//弹出层(从底部)

<div id="bottomb" class="weui-popup__container popup-bottom">
<div class="weui-popup__overlay"></div>
<div class="weui-popup__modal">

弹出层的内容。。。。(默认是不显示的)

</div>
</div>

===========================================

//下面主要是:a标签里面的两个类:open-popup(点击a打开弹出层) , lose-popup(点击a关闭弹出层)。还有:data-target=" #要与弹出层的div中的id属性值一样" 

<div class="context_w">

<a class="weui-navbar__item weui-bar__item--on context_wei_item open-popup lose-popup" data-target="#bottomb" href="javascript:;" id="alljq">全部
<div class="weui-cell__ft">
</div>
</a>

</div>