Files
nxxmdata/website/data-screen/test.html

54 lines
1.4 KiB
HTML
Raw Normal View History

2025-08-27 15:36:36 +08:00
<!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>
body {
margin: 0;
padding: 20px;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
color: white;
font-family: 'Microsoft YaHei', sans-serif;
min-height: 100vh;
}
.test-container {
text-align: center;
padding: 50px;
}
.test-title {
font-size: 32px;
color: #00d4ff;
margin-bottom: 20px;
}
.test-content {
font-size: 18px;
line-height: 1.6;
}
</style>
</head>
<body>
<div class="test-container">
<h1 class="test-title">测试页面</h1>
<div class="test-content">
<p>如果您能看到这个页面说明基本的HTML和CSS工作正常。</p>
<p>当前时间: <span id="time"></span></p>
</div>
</div>
<script>
console.log('测试页面已加载');
function updateTime() {
const now = new Date();
document.getElementById('time').textContent = now.toLocaleString('zh-CN');
}
updateTime();
setInterval(updateTime, 1000);
console.log('时间更新已启动');
</script>
</body>
</html>