当前位置:网站首页>JS实现滑动拼图验证
JS实现滑动拼图验证
2022-06-28 00:27:00 【明斯克开源】
.container {
width: 310px;
margin: 100px auto;
}
#msg {
width: 100%;
line-height: 40px;
font-size: 14px;
text-align: center;
}
a:link,
a:visited,
a:hover,
a:active {
margin-left: 100px;
color: #0366D6;
}
.block {
position: absolute;
left: 0;
top: 0;
}
.sliderContainer {
position: relative;
text-align: center;
width: 310px;
height: 40px;
line-height: 40px;
margin-top: 15px;
background: #f7f9fa;
color: #45494c;
border: 1px solid #e4e7eb;
}
.sliderContainer_active .slider {
height: 38px;
top: -1px;
border: 1px solid #1991FA;
}
.sliderContainer_active .sliderMask {
height: 38px;
border-width: 1px;
}
.sliderContainer_success .slider {
height: 38px;
top: -1px;
border: 1px solid #52CCBA;
background-color: #52CCBA !important;
}
.sliderContainer_success .sliderMask {
height: 38px;
border: 1px solid #52CCBA;
background-color: #D2F4EF;
}
.sliderContainer_success .sliderIcon {
background-position: 0 0 !important;
}
.sliderContainer_fail .slider {
height: 38px;
top: -1px;
border: 1px solid #f57a7a;
background-color: #f57a7a !important;
}
.sliderContainer_fail .sliderMask {
height: 38px;
border: 1px solid #f57a7a;
background-color: #fce1e1;
}
.sliderContainer_fail .sliderIcon {
background-position: 0 -83px !important;
}
.sliderContainer_active .sliderText,
.sliderContainer_success .sliderText,
.sliderContainer_fail .sliderText {
display: none;
}
.sliderMask {
position: absolute;
left: 0;
top: 0;
height: 40px;
border: 0 solid #1991FA;
background: #D1E9FE;
}
.slider {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 40px;
background: #fff;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: background .2s linear;
}
.slider:hover {
background: #1991FA;
}
.slider:hover .sliderI 《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》无偿开源 威信搜索公众号【编程进阶路】 con {
background-position: 0 -13px;
}
.sliderIcon {
position: absolute;
top: 15px;
left: 13px;
width: 14px;
height: 10px;
background: url(img/tb.png) 0 -26px;
background-size: 34px 471px;
}
.refreshIcon {
position: absolute;
right: 0;
top: 0;
width: 34px;
height: 34px;
cursor: pointer;
background: url(img/tb.png) 0 -437px;
background-size: 34px 471px;
}
页面,页面只用放一个div就可以了
js部分代码,包括验证是否正确
边栏推荐
- 要搞清楚什么是同步,异步,串行,并行,并发,进程,线程,协程
- 架构高可靠性应用知识图谱 ----- 架构演进之路
- New choice for database Amazon Aurora
- [Yocto RM]8 - OpenEmbedded Kickstart (.wks) Reference
- Dynamic Host Configuration Protocol
- Scoped attribute and lang attribute in style
- Cesium obtains the latitude and longitude range of the screen
- Numpy----np.reshape()
- Where can I open an account for foreign exchange futures? Which platform is safer for cash in and out?
- Hi, you have a code review strategy to check!
猜你喜欢
随机推荐
架构高可靠性应用知识图谱 ----- 微服务架构图谱
STM32的通用定时器与中断
要搞清楚什么是同步,异步,串行,并行,并发,进程,线程,协程
Appium automation test foundation - Supplement: app package name and appactivity
[Yocto RM]3 - Yocto Project Releases and the Stable Release Process
How to handle computer security certificate errors
云平台kvm迁移本地虚拟机记录
[Yocto RM]1 - System Requirements
Jenkins - Groovy Postbuild 插件丰富 Build History 信息
Locust performance test - parameterization, no repetition of concurrent cyclic data sampling
[Yocto RM] 4 - Source Directory Structure
The system administrator has set the system policy to prohibit this installation. Solution
SQL 注入绕过(二)
Jenkins - data sharing and transfer between copy artifact plug-in builds
205. isomorphic string
The interviewer asked: this point of JS
Anonymous Mount & named mount
Adding text labels to cesium polygons the problem of polygon center point offset is solved
【sylixos】NEW_ Example of type 1 character drive
Cloud platform KVM migration local virtual machine records








![[Yongyi XY chair] trial experience](/img/9e/9814bf21a79214d21d2a257c725147.jpg)
