강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của akwntlsrja59672092
akwntlsrja59672092

câu hỏi đã được viết

Một trại huấn luyện phát triển toàn diện thực sự dành cho những người không chuyên ngành

[그랩마켓] Xây dựng giao diện web - 3

안녕하세요 똑같이 한거 같은데 확인 해보니 달라서 질문 글 올립니다 ㅜㅜ

Viết

·

155

1

Css 부분
* {
    margin0;
    padding0;
}
#header {
    height64px;
    displayflex;
    justify-contentcenter;
    border-bottom1px solid black;
}
#body {
    height100%;
    width1024px;
    margin0 auto/*부모로 부터 중앙 정렬*/
    padding-bottom24px;
}
#footer {
    height200px;
    background-colorred;
}
#banner {
    height300px;
    background-coloryellow;
}

#header-area {
    width1024px;
    height100%;
    /* margin: 0 auto; */
    displayflex;
    align-itemscenter;
}
#header-area > img {
    width128px;
    height36px;
}
#banner > img {
    width100%;
    height300px;
}
#body > h1 {
    margin-top16px;
}
#product-list{
    displayflex;
    flex-wrapwrap;
    margin-top12px;
}
.product-card {
    width180px;
    height300px;
    background-colorgray;
    margin-right12px;
    margin-bottom12px;
}
Html 부분
<h1>판매되는 상품들</h1>
        <div id="product-list">
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
        </div>
    </div>
    <div id="footer"></div>
확인을 해 보니 밑의 결과 처럼 나오는데 원래 이런건지 맥북이 아니라서 이러는건지 도통 모르겠어서..
reactnodejsHTML/CSSreact-nativeexpressjavascript머신러닝 배워볼래요? tensorflow

Câu trả lời 1

1

Kay potato님의 프로필 이미지
Kay potato
Người đặt câu hỏi

아; 단순하게 바디에 height 값을 좀 더 주니 괜찮아지는군요!

grab님의 프로필 이미지
grab
Người chia sẻ kiến thức

넵 뒷 부분에 body의 height를 100vh로 두는 내용이 나옵니다 :)

Hình ảnh hồ sơ của akwntlsrja59672092
akwntlsrja59672092

câu hỏi đã được viết

Đặt câu hỏi