用html仿一个微信电话手表 静态网页
时间: 2024-03-18 21:43:39 浏览: 14
好的,下面是一个简单的HTML静态页面示例,可以仿照微信电话手表,您可以根据需要进行修改:
```html
<!DOCTYPE html>
<html>
<head>
<title>微信电话手表</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
color: #333;
padding: 20px;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 20px;
}
.card {
background-color: #fff;
box-shadow: 0px 0px 5px #999;
border-radius: 5px;
margin: 10px;
padding: 20px;
min-width: 250px;
text-align: center;
flex-grow: 1;
}
.card img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
}
.card h2 {
color: #333;
font-size: 20px;
margin-bottom: 10px;
}
.card p {
color: #666;
font-size: 16px;
line-height: 1.5;
margin-bottom: 10px;
}
.card button {
background-color: #4CAF50;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin-top: 10px;
}
.card button:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<h1>微信电话手表</h1>
<div class="container">
<div class="card">
<img src="https://via.placeholder.com/150x150" alt="联系人头像">
<h2>联系人姓名</h2>
<p>电话号码:123456789</p>
<p>微信号:wechat</p>
<button>拨打电话</button>
</div>
<div class="card">
<img src="https://via.placeholder.com/150x150" alt="联系人头像">
<h2>联系人姓名</h2>
<p>电话号码:123456789</p>
<p>微信号:wechat</p>
<button>拨打电话</button>
</div>
<div class="card">
<img src="https://via.placeholder.com/150x150" alt="联系人头像">
<h2>联系人姓名</h2>
<p>电话号码:123456789</p>
<p>微信号:wechat</p>
<button>拨打电话</button>
</div>
</div>
</body>
</html>
```
这是一个简单的网页模板,包含了标题、联系人卡片等元素。您可以根据需要进行调整和修改,以实现您所需的效果。