首页 >web前端 >css教程 >废话!蓝色的!蓝色的!十二月...!

废话!蓝色的!蓝色的!十二月...!

Mary-Kate Olsen
Mary-Kate Olsen原创
2024-12-23 14:59:10759浏览

BLA ! BLA! BLA! DECEMBER...!











冬至



身体{

边距:0;

字体系列:Arial、无衬线体;

行高:1.6;

背景:线性渐变(到底部,#1e3c72,#2a5298);

颜色:白色;

}


背景:rgba(0, 0, 0, 0.8);
颜色:白色;
填充: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;
}

脚本>




以上是废话!蓝色的!蓝色的!十二月...!的详细内容。更多信息请关注PHP中文网其他相关文章!

html if for const Reflection copy function href position margin padding background
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:How to Make an Iframe Fill 100% of the Browser Height?下一篇:Can a Single HTML Element Have Two Background Colors?

相关文章

查看更多