YYCMIKE28的个人网页
HTML
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YYC的个人页面</title>
<style>
/* 重置默认样式,消除浏览器差异 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f5f5f5;
min-height: 100vh;
font-family: Arial, sans-serif;
}
/* 确保背景图容器铺满整个页面 */
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* 确保背景在内容下方 */
background-image: url("https://s1.img-e.com/20260430/69f2c4698b1cb.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.banner {
width: 100%;
height: clamp(200px, 50vh, 400px);
background-image: url("https://s1.img-e.com/20260430/69f2c4698b1cb.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-bottom: 2rem;
}
.content {
max-width: 800px;
margin: 0 auto 2rem; /* 增加底部间距 */
padding: 2rem;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 8px;
}
/* 按钮样式优化 */
.button-link {
display: inline-block;
padding: 0.8rem 1.5rem;
background-color: #0066cc;
color: white;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s;
cursor: not-allowed; /* 标记为不可用状态 */
opacity: 0.7;
}
.button-link:hover {
background-color: #0052a3;
}
/* 其他样式保持不变 */
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
h2 {
font-size: 1.8rem;
margin: 1.5rem 0 1rem;
color: #333;
}
p {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 1rem;
}
a {
color:...