JS弹窗遮罩 POP
2024-10-21 10:03:24
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;
}
最新文章
- Android声音播放实例代码
- CodeBlock
- sublime快捷键<;转>;
- 让项目同时支持ARC和非ARC
- ExtJS笔记 Tree
- VC++ MFC 按钮的全部样式Style
- PHP数据库基础
- 如何清除win7开机密码
- 翻译【ElasticSearch Server】第一章:开始使用ElasticSearch集群(5)
- [TypeScript] Understanding Generics with RxJS
- postgres常用操作
- mysql去重的最方便的两种方法
- a中的类型转换
- 禅道---Bug管理模块
- Python的类与类型
- Java NIO 之 Buffer
- Dockerfile中COPY命令的简单性
- 使用Object.prototype.toString.call()方法精确判断对象的类型
- Android为TV端助力 同时setTag两次,保存多种值
- 博客里的第一篇随笔!QWQ
热门文章
- Excel二维码图片生成器
- 【微服务架构设计实施】第一部分:架构篇-1:微服务架构与Spring Cloud介绍
- 【每日一题】【暴力&;双指针&;动态规划】42. 接雨水-211130/220214
- SQLMap入门——获取当前网站数据库的名称
- week_9(推荐系统)
- Google分布式文件系统GFS论文学习
- MySQL join语句怎么优化?
- 深入理解C++虚函数底层机制和RTTI运行时类型识别
- 一次JVM GC长暂停的排查过程
- P8701 [蓝桥杯 2019 国 B] 第八大奇迹