给我写一个购物网站唤起支页面前端代码
<p>以下是一个简单的购物网站唤起支页面的前端代码示例:</p>
<!DOCTYPE html>
<html>
<head>
<title>购物网站唤起支页面</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
h1 {
text-align: center;
margin-bottom: 30px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
label {
font-weight: bold;
margin-bottom: 10px;
}
input[type=text], input[type=email], input[type=tel] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
input[type=submit] {
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<h1>唤起支页面</h1>
<form>
<label for="name">姓名</label>
<input type="text" id="name" name="name" required>
<label for="email">邮箱</label>
<input type="email" id="email" name="email" required>
<label for="phone">电话</label>
<input type="tel" id="phone" name="phone" required>
<input type="submit" value="提交">
</form>
</div>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/bKW5 著作权归作者所有。请勿转载和采集!