吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1375|回复: 1
收起左侧

[新手问题] 如图所示,它也不是网页啊,编程时如何出这种效果?

[复制链接]
冥界3大法王 发表于 2025-10-13 10:35
本帖最后由 冥界3大法王 于 2025-10-13 10:37 编辑

image.png
看着很像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>


image.png

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

qq465881818 发表于 2025-10-13 10:59
Qt WebEngine Widgets
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-8-7 14:44

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表