Notice: session_start(): A session had already been started - ignoring in /www/wwwroot/bktao.com/wp-content/plugins/erphpdown/includes/init.php on line 131

Notice: session_start(): A session had already been started - ignoring in /www/wwwroot/bktao.com/wp-content/themes/modown/single.php on line 2
discuz showWindow() 弹窗样式 - 宝库网
discuz showWindow() 弹窗样式

discuz showWindow() 弹窗样式

 

showWindow()本身是有遮罩层参数可用的,js生成。
这里所述是自用的另外增加的。

css

.Modal{position: relative;z-index1;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;width400px;max-heightcalc(100vh - 48px);margin-right: auto;margin-left: auto;outline0;-webkit-box-shadow0 5px 20px 0 rgba(0,34,77,.5);box-shadow0 5px 20px 0 rgba(0,34,77,.5);-webkit-box-sizing: border-box;box-sizing: border-box;-webkit-transition: max-height .8s ease;transition: max-height .8s ease;}
.Modal-wrapper{position: fixed; top0right0bottom0left0z-index203display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; overflow-x: hidden; overflow-y: auto; -webkit-transition: opacity .3s ease-out; transition: opacity .3s ease-out;}
.Modal-fullPage{width688px;}
.Modal-inner{overflow: auto;background#fff;border-radius2px;}
.Modal-backdrop{position: absolute; top0right0bottom0left0z-index0background-colorrgba(0,0,0,.65); -webkit-transition: background-color .3s ease-out; transition: background-color .3s ease-out;}

html

<div class="Modal-wrapper">
    <div class="Modal-backdrop" onclick="hideWindow('弹窗ID')"></div>
    <div class="Modal Modal--fullPage">
        <div class="Modal-inner">
……弹窗的内容……
        </div>
    </div>
</div>

此代码有两个作用:

1.会遮盖掉那一圈的tr、td半透明圆角边框。

2.遮罩层div单独使用,如上面html代码,可以给遮罩层hideWindow(),这样常用的弹窗,点击弹窗窗体之外可以关闭掉弹窗。对于那些比较重要,不希望随意关闭的窗口,可以不给遮罩层hideWindow(),只给关闭按钮。

声明:本站所有资源均为互联网收集而来和网友投稿,仅供学习交流使用,如资源适合请购买正版体验更完善的服务;若本站侵犯了您的合法权益,可联系我们删除,给您带来的不便我们深表歉意。版权声明点此了解!
0

评论0

请先
没有账号?注册  忘记密码?