首页 > Web开发 > 详细

JS弹窗遮罩 POP

时间:2020-05-13 15:36:42      阅读:59      评论:0      收藏:0      [点我收藏+]

 

 html:

<div class="popBox">
     <div class="pb">
          <span class="clousx"></span>
          <div class="p-box"></div>
     </div>                                          
</div>   

 

css:

.popBox {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  background: rgba(0,0,0,0.5);
  height: 100%;
  z-index: 150000;
 }
 .popBox .pb {
  width: 6.58rem;
  background: #fff;
  display: flex;
  justify-content: space-between;
  position: relative;
  font-size: 0.3rem;
  text-align: left;
  left: 0.46rem;
  padding-top: 0.65rem;
  border-radius: 0.1rem;
  padding: .92rem .5rem .64rem .3rem;
  margin-top: 2rem;
  overflow-y: auto;box-sizing: border-box;
 }
 .popBox .clousx {
  position: absolute;
  z-index: 20000;
  width: 1rem;
  height: 0.84rem;
  background: url(../images/index/close-icon.png) no-repeat center center;
  background-size: 0.32rem 0.32rem;
  display: inline-block;
  right: 0;
  top: 0;
}
.popBox  .p-box {
  position: relative;
  height: 7rem;
  overflow-y: auto;
}

 

 

 

 

 

 

 

技术分享图片

 

JS弹窗遮罩 POP

原文:https://www.cnblogs.com/liubingyjui/p/12882170.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!