Html
    Css
    Js
.box {
	width:300px;
	height:150px;
	border:1px solid;
	margin:30px auto;
	position:relative;
}
.code {
	width:120px;
	height:40px;
	background-color:#D6E3BC;
	border:2px solid;
	text-align:center;
	font-size:24px;
	line-height:40px;
	position:absolute;
	top:20px;
	left:20px;
	letter-spacing:3px;
}
a {
	position:absolute;
	left:160px;
	top:30px;
	color:green;
}
input {
	width:180px;
	height:20px;
	top:90px;
	left:20px;
	position:absolute;
}
button {
	width:50px;
	height:26px;
	position:absolute;
	top:90px;
	right:26px;
	background-color:green;
	color:#fff;
	border:1px solid gray;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

js前端随机生成验证码

更新时间:2019-09-05 15:52:10

0