用html写一个云笔记列表界面,第一行显示这是我的笔记,添加新笔记按钮,返回首页按钮。第二行显示ID,标题,创建时间,修改时间,操作。操作下有修改按钮,删除按钮。可以读取静态字典的数据
时间: 2024-06-05 07:06:47 浏览: 18
<!DOCTYPE html>
<html>
<head>
<title>云笔记列表界面</title>
<meta charset="UTF-8">
<style>
table {
border-collapse: collapse;
width: 80%;
margin: 20px auto;
}
th, td {
border: 1px solid black;
padding: 10px;
text-align: center;
}
th {
background-color: #ddd;
}
button {
margin: 10px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>这是我的笔记</h1>
<button onclick="location.href='index.html'">返回首页</button>
<button onclick="location.href='add_note.html'">添加新笔记</button>
<table>
<thead>
<tr>
<th>ID</th>
<th>标题</th>
<th>创建时间</th>
<th>修改时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>笔记1</td>
<td>2021-05-01 10:00:00</td>
<td>2021-05-02 12:00:00</td>
<td>
<button>修改</button>
<button>删除</button>
</td>
</tr>
<tr>
<td>2</td>
<td>笔记2</td>
<td>2021-05-03 14:00:00</td>
<td>2021-05-04 16:00:00</td>
<td>
<button>修改</button>
<button>删除</button>
</td>
</tr>
<tr>
<td>3</td>
<td>笔记3</td>
<td>2021-05-05 18:00:00</td>
<td>2021-05-06 20:00:00</td>
<td>
<button>修改</button>
<button>删除</button>
</td>
</tr>
</tbody>
</table>
</body>
</html>
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)