js+css实现可上下拖动显示大小的弹出层效果代码
代码语言:html
所属分类:弹出层
代码描述:js+css实现可上下拖动显示大小的弹出层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #ccc;
}
.show-modal {
outline: none;
border: none;
cursor: pointer;
color: #fff;
border-radius: 6px;
font-size: 1.2rem;
padding: 15px 22px;
background: #333;
transition: 0.3s ease;
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}
.show-modal:hover {
background: #555;
}
.bottom-sheet {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
opacity: 0;
pointer-events: none;
align-items: center;
flex-direct.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0