简洁H5提示代码示例 - 轻松创建个性化提示框
<!DOCTYPE html>
<html>
<head>
<title>简洁的H5提示</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
<p>.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);
}</p>
<p>h1 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
text-align: center;
}</p>
<p>p {
font-size: 16px;
color: #666;
text-align: center;
}</p>
<p>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;
}</p>
<p>button:hover {
background-color: #45a049;
}
</style></p>
</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/pZKY 著作权归作者所有。请勿转载和采集!