<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>滑块验证</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 500px;
height: 500px;
position: absolute;
right: 0;
}
.barrier {
position: absolute;
width: 100px;
height: 100px;
background-color: #fff;
left: 50%;
top: 50%;
}
img {
width: 500px;
height: 500px;
}
.run {
position: absolute;
left: 0;
top: 200px;
background-image: url(./img/p17.jpg);
background-size: 500px 500px;
width: 100px;
height: 100px;
background-position: 50% 50%;
z-index: 99;
}</