帮我生成一个好看简洁的H5提示html源码
<!DOCTYPE html>
<html>
<head>
<title>简洁的H5提示</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
<pre><code>.container {
width: 300px;
margin: 100px auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
text-align: center;
}
p {
font-size: 16px;
color: #666;
text-align: center;
}
button {
display: block;
width: 100px;
margin: 20px auto;
padding: 10px;
background-color: #4CAF50;
color: #fff;
font-size: 14px;
border: none;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</code></pre>
</style>
</head>
<body>
<div class="container">
<h1>简洁的H5提示</h1>
<p>这是一个简洁的H5提示页面。</p>
<button onclick="alert('Hello!')">点击我</button>
</div>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/ihwb 著作权归作者所有。请勿转载和采集!