spotlight实现图片点击弹出lightbox画廊效果代码
代码语言:html
所属分类:画廊相册
代码描述:spotlight实现图片点击弹出lightbox画廊效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: 0;
font-family: Aral, Helvetica, sans-serif;
text-align: center;
}
a{
display: inline-block;
}
b{
display: block;
padding: 10px;
}
button{
padding: 5px 10px;
}
img,
.image{
width: 30vw;
max-width: 300px;
margin: 1vh 1vw;
}
.image{
display: inline-block;
height: 20vw;
max-height: 200px;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
.spotlight.image{
cursor: pointer;
}
</style>
<script type="text/javascript" src="//re.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0