js模态弹出层弹出框插件coco-modal示例展示代码
代码语言:html
所属分类:弹出层
代码描述:js模态弹出层弹出框插件coco-modal示例展示代码
代码标签: 层 弹出 框 插件 coco-modal 示例 展示
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
margin: 0;
}
*{
box-sizing:border-box;
outline: none
}
.root {
width: 1000px;
height: 200vh;
/* background-color: #f1f1f2; */
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.content{
box-shadow: 0 0 0 2px rgba(66, 133, 255,.25);
background-color: rgba(66, 133, 255,.036);
padding: 30px;
border-radius:6px
}
.btn {
font-size: 14px;
text-decoration: none;
padding: 6px 22px;
white-space: nowrap;
border-radius: 6px;
font-weight: 600;
display: inline-block;
cursor: pointer;
position: relative;
border: 0;
appearance: none;
outline: none;
margin: 30px;
position: relative;
}
.btn span {
position: relative;
}
.btn {
background-color: #ec558f;
background-color: #e71e63;
background-color: #4285ff;
color: #fff;
}
.btn::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: inherit;
transition: all 0.16s ease-out;
background-color: rgba(0, 0, 0, 0);
}
.btn:hover::before {
background-color: rgba(0, 0, 0, 0.08);
}
.btn:active::before {
transition: all 0.05s ease;
background-color: rgba(0, 0, 0, 0.16);
}
.swiper-container {
width: 100%;
height: 700px;
}
.swiper-slide {
text-align: center;
font-size: 18px;
background: #e9e9e9;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-b.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0