work/mvp/browser-extension/app/test.html
2025-12-17 22:30:44 +08:00

52 lines
1.4 KiB
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; }
body {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
font-family: system-ui, sans-serif;
}
.card {
background: white;
padding: 40px 60px;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
text-align: center;
}
h1 { color: #333; margin-bottom: 16px; }
p { color: #666; margin-bottom: 20px; }
.success { color: #10b981; font-size: 48px; }
button {
background: #667eea;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
}
button:hover { background: #5a67d8; }
#result { margin-top: 16px; color: #333; }
</style>
</head>
<body>
<div class="card">
<div class="success"></div>
<h1>插件页面正常工作!</h1>
<p>如果你能看到这个页面,说明插件可以正常显示网页。</p>
<button id="testBtn">测试 JavaScript</button>
<div id="result"></div>
</div>
<script src="test.js"></script>
</body>
</html>