<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<!--viewport : 视口-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>验证码</title>
<style>
*{
margin:0;
padding:0;
}
.box{
position:relative;
width:250px;
height:230px;
border:1px solid black;
}
input{
width:200px;
height:50px;
}
.TFimg{
position:absolute;
width:20px;
height:20px;
/*通过js控制显示*/
/*background-image:url('images/false.png');*/
background-size:100%;
right:10px;
top:20px;
}
.TFtext{
/*通过js控制显示*/
display:none;
width:
原生js写验证码
最新推荐文章于 2024-05-11 10:05:08 发布