写一个手机验证码登录的html网页
时间: 2023-05-26 20:02:51 浏览: 46
<!DOCTYPE html>
<html>
<head>
<title>手机验证码登录</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial;
background-color: #f2f2f2;
}
form {
margin-top: 100px;
text-align: center;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px #ccc;
max-width: 500px;
margin: auto;
}
h2 {
color: #444;
}
label {
font-size: 18px;
font-weight: bold;
display: block;
margin-bottom: 10px;
color: #555;
text-align: left;
}
input[type=text] {
font-size: 16px;
padding: 8px 10px;
border: 2px solid #ccc;
border-radius: 4px;
margin-bottom: 20px;
width: 100%;
}
input[type=submit] {
background-color: #4CAF50;
color: #fff;
font-size: 18px;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<form action="#">
<h2>手机验证码登录</h2>
<label for="phone">手机号码:</label>
<input type="text" id="phone" name="phone" placeholder="请输入您的手机号码" required>
<input type="submit" value="获取验证码">
<label for="verifyCode">验证码:</label>
<input type="text" id="verifyCode" name="verifyCode" placeholder="请输入您的验证码" required>
<input type="submit" value="登录">
</form>
</body>
</html>
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)