废话!蓝色的!蓝色的!十二月...!
冬至
身体{
边距:0;
字体系列:Arial、无衬线体;
行高:1.6;
背景:线性渐变(到底部,#1e3c72,#2a5298);
颜色:白色;
}
背景:rgba(0, 0, 0, 0.8);
颜色:白色;
填充:1rem 2rem;
位置:固定;
宽度:100%;
顶部:0;
z 索引:1000;
}
颜色:白色;
填充:1rem 2rem;
位置:固定;
宽度:100%;
顶部:0;
z 索引:1000;
}
header h1 { margin: 0; font-size: 1.8rem; } nav { margin-top: 10px; } nav a { color: white; text-decoration: none; margin: 0 15px; font-weight: bold; transition: color 0.3s; } nav a:hover { color: #ffcc00; } section { padding: 100px 20px; min-height: 100vh; } .hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .hero h2 { font-size: 3rem; margin: 0; } .hero p { font-size: 1.2rem; max-width: 600px; margin: 20px auto 0; } .cta { margin-top: 20px; } .cta button { background: #ffcc00; border: none; padding: 10px 20px; font-size: 1rem; font-weight: bold; cursor: pointer; border-radius: 5px; transition: background 0.3s; } .cta button:hover { background: #e6b800; } footer { text-align: center; padding: 20px; background: rgba(0, 0, 0, 0.8); position: relative; } footer p { margin: 0; font-size: 0.9rem; }
登录后复制
登录后复制
风格>
冬至
标题>
欢迎来到冬至
一年中最长的夜晚标志着反思、更新和庆祝的时刻。探索传统、庆祝活动等。
节>
庆祝活动
从古老的仪式到现代的庆祝活动,世界各地都在庆祝冬至。分享欢乐和传统。
节>
联系我们
如果您有疑问或想了解有关我们活动的更多信息,请随时与我们联系。我们很乐意听取您的意见!
节>
&复制; 2024 年冬至。保留所有权利。
页脚>
函数scrollToSection(sectionId) {
constsection = document.getElementById(sectionId);
如果(部分){
window.scrollTo({
top:section.offsetTop - 60, // 固定标题的偏移量
行为:“平滑”
});
}
}
header h1 { margin: 0; font-size: 1.8rem; } nav { margin-top: 10px; } nav a { color: white; text-decoration: none; margin: 0 15px; font-weight: bold; transition: color 0.3s; } nav a:hover { color: #ffcc00; } section { padding: 100px 20px; min-height: 100vh; } .hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .hero h2 { font-size: 3rem; margin: 0; } .hero p { font-size: 1.2rem; max-width: 600px; margin: 20px auto 0; } .cta { margin-top: 20px; } .cta button { background: #ffcc00; border: none; padding: 10px 20px; font-size: 1rem; font-weight: bold; cursor: pointer; border-radius: 5px; transition: background 0.3s; } .cta button:hover { background: #e6b800; } footer { text-align: center; padding: 20px; background: rgba(0, 0, 0, 0.8); position: relative; } footer p { margin: 0; font-size: 0.9rem; }
登录后复制
登录后复制
脚本>