写一个邮箱的html+css,能够进行查看,回复,删除邮件
时间: 2023-06-26 20:04:05 浏览: 38
以下是一个简单的邮箱HTML+CSS页面示例,其中包括查看、回复和删除邮件的功能:
```html
<!DOCTYPE html>
<html>
<head>
<title>我的邮箱</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
}
header {
background-color: #0072c6;
color: #fff;
padding: 10px;
}
h1 {
margin: 0;
font-size: 24px;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
border-bottom: 1px solid #ddd;
}
tr:hover {
background-color: #f5f5f5;
}
button {
padding: 8px 16px;
background-color: #0072c6;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #005e9f;
}
</style>
</head>
<body>
<header>
<h1>我的邮箱</h1>
</header>
<div class="container">
<table>
<thead>
<tr>
<th>发件人</th>
<th>主题</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>张三</td>
<td>会议通知</td>
<td>2022-01-01 10:00</td>
<td>
<button>查看</button>
<button>回复</button>
<button>删除</button>
</td>
</tr>
<tr>
<td>李四</td>
<td>产品介绍</td>
<td>2022-01-02 14:00</td>
<td>
<button>查看</button>
<button>回复</button>
<button>删除</button>
</td>
</tr>
<tr>
<td>王五</td>
<td>工作计划</td>
<td>2022-01-03 16:00</td>
<td>
<button>查看</button>
<button>回复</button>
<button>删除</button>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
```
在这个示例中,我们使用了HTML表格元素来显示邮件列表。每个邮件都有发件人、主题、时间和操作(查看、回复、删除)列。我们使用了CSS来美化整个页面,使其更加易于阅读和操作。