>웹 프론트엔드 >CSS 튜토리얼 >어쩌구! 파란색! 파란색! 12월...!

어쩌구! 파란색! 파란색! 12월...!

Mary-Kate Olsen
Mary-Kate Olsen원래의
2024-12-23 14:59:10754검색

BLA ! BLA! BLA! DECEMBER...!











동지



몸 {

여백: 0;

글꼴 계열: Arial, sans-serif;

줄 높이: 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;
}







<헤더>

동지



성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.