<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>简单H5页面模板</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f2f2f2;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
}
p {
color: #666;
line-height: 1.6;
}
.button {
display: block;
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: #fff;
text-align: center;
text-decoration: none;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
}
.button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>欢迎来到我的H5页面</h1>
<p>这是一个简单的H5页面模板,你可以根据自己的需求进行修改和扩展。</p>
<button class="button" onclick="alert('你点击了按钮!')">点击我</button>
</div>
<script>
// 这里可以添加你的JavaScript代码
// 例如,你可以处理按钮点击事件、添加动画效果等
</script>
</body>
</html>