• h***y 下载了资源 Elementor Pro v3.28.4 /3.28.3 /3.28.2 /3.28.1 /3.28.0 /3.27.5 /3.27.4 /3.27.1 /3.27.0 /3.26.3 强大先进的网站构建器插件wordpress主题模板编辑神器页面生成器插件 wp响应式主题模板编辑生成器 公司主题模板外贸跨境电商模板编辑工具
  • B* 登录了本站
  • B* 登录了本站
  • B* 登录了本站
  • B* 登录了本站
  • B* 登录了本站
  • o******* 下载了资源 Elementor Pro v3.28.4 /3.28.3 /3.28.2 /3.28.1 /3.28.0 /3.27.5 /3.27.4 /3.27.1 /3.27.0 /3.26.3 强大先进的网站构建器插件wordpress主题模板编辑神器页面生成器插件 wp响应式主题模板编辑生成器 公司主题模板外贸跨境电商模板编辑工具
  • o******* 登录了本站
  • s******* 下载了资源 BetterDocs Pro v3.5.6 / v3.5.5 / 3.5.4 /3.5.3 WordPress知识库插件 汉化版 创建和管理知识库文档
  • s******* 下载了资源 BetterDocs Pro v3.5.6 / v3.5.5 / 3.5.4 /3.5.3 WordPress知识库插件 汉化版 创建和管理知识库文档
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(),只给关闭按钮。

声明:本站所有资源均为互联网收集而来和网友投稿,仅供学习交流使用,如资源适合请购买正版体验更完善的服务;如有侵犯到您的权益,可联系我们删除,给您带来的不便我们深表歉意。版权声明点此了解!
本站分享的WordPress主题/插件均遵循 GPLv2 许可协议(开源软件)。相关介绍资料仅供参考,实际版本可能因版本迭代或开发者调整而产生变化。涉及第三方原创图像、设计模板、远程服务等内容的使用,需获得作者授权。
0

评论0

请先
Wordpress Automatic Plugin v3.108.3自动采集发布插件 AI内容生成器 AI内容自动生成器WordPress插件采集速卖通/亚马逊/eBay/沃尔玛等跨境电商独立站插件
Wordpress Automatic Plugin v3.108.3自动采集发布插件 AI内容生成器 AI内容自动生成器WordPress插件采集速卖通/亚马逊/eBay/沃尔玛等跨境电商独立站插件
10分钟前 有人购买 去瞅瞅看

站点提示

副业搞钱,快人一步
(你可以做闲鱼/小红书/公众号等方式变现)
没有账号?注册  忘记密码?