本帖最后由 冥界3大法王 于 2025-10-13 10:37 编辑
看着很像MarkDown的效果啊。。。
下面的效果不错:
[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>快捷键列表</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', system-ui, sans-serif;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 20px;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
width: 400px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
overflow: hidden;
}
.shortcut-table {
width: 100%;
border-collapse: collapse;
}
.shortcut-table th {
background: #4a69bd;
color: white;
text-align: left;
padding: 12px 16px;
font-weight: 600;
}
.shortcut-table tr:nth-child(even) {
background-color: #f8f9fa;
}
.shortcut-table tr:nth-child(odd) {
background-color: white;
}
.shortcut-table td {
padding: 12px 16px;
border-bottom: 1px solid #eaeaea;
}
.shortcut {
display: inline-block;
background: #4a69bd;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-family: 'Consolas', monospace;
font-size: 0.85rem;
}
</style>
</head>
<body>
<div class="container">
<table class="shortcut-table">
<thead>
<tr>
<th width="60%">功能</th>
<th width="40%">快捷键</th>
</tr>
</thead>
<tbody>
<tr>
<td>保存文件</td>
<td><span class="shortcut">Ctrl</span> + <span class="shortcut">S</span></td>
</tr>
<tr>
<td>复制内容</td>
<td><span class="shortcut">Ctrl</span> + <span class="shortcut">C</span></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
   |