2021.06.09(NAVERショッピング1編)

32550 ワード

学習の内容


[NAVERショッピングモール端部]
<body id="shop_body">
	<!-- 네이버 쇼핑 상단 -->
	<header id="shop_header">
		<div id="shop_header_top"></div>
		<div id="shop_header_middle"></div>
		<nav>
			<div class="shop_container">
				<ul>
					<li><a href="#"></a></li>
					<li><a href="#">백화점</a></li>
					<li><a href="#">아울렛</a></li>
					<li><a href="#">스타일</a></li>
				</ul>
			</div>
		</nav>
	</header>
#shop_body {
	background-color: #e9ecef;
}

.shop_container {
	width: 1280px;
	margin: 0 auto;
}

.shop_border {
	border: solid 1px #ecd2d7;
}

.w-100 {
	width: 100%;
}

.h-100 {
	height: 100%;
}

#shop_header #shop_header_top {
	width: 100%;
	height: 36px;
	background-color: #03c75a;
	border-bottom: solid 1px #e8e8e8;
}

#shop_header #shop_header_middle {
	width: 100%;
	height: 66px;
	background-color: #03c75a;
	border-bottom: solid 1px #e8e8e8;
}

#shop_header nav {
	width: 100%;
	border-top: solid 1px #e8e8e8;
	border-bottom: solid 1px #e8e8e8;

	background-color: #ffffff;
}

#shop_header nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;

	padding: 13px 0 8px 0;
}

#shop_header nav ul li {
	margin-right: 16px;
}

[NAVERショッピングホームページ(1)]
	<main role="main" id="shop_main">
		<div class="shop_container">
			<div class="list_wrap">
				<div class="list_item">
					<div class="category_wrap w_100 h_100 shop_border">
						<div class="category_left">
							<h3>카테고리</h3>
							<ul>
								<li><a href="#">패션의류</a></li>
								<li><a href="#">패션잡화</a></li>
								<li><a href="#">화장품</a></li>
								<li><a href="#">디지털가전</a></li>
							</ul>
						</div>
						<div class="category_right">
							<div class="category_right_top">
								<div class="category_info">
									<span class="headline">인기상품</span>
									<h3>견고함의 차이<br>
									세라믹 식탁 세트</h3>
									<span class="price">308,800원</span>
								</div>

								<div class="image_wrap">
									<img src="https://via.placeholder.com/140x160">
								</div>
							</div>
							<div class="category_right_bottom">
								<span class="headline">추천태그</span>

								<div class="tag_wrap">
									<span class="tag">#유아마스크</span>
									<span class="tag">#하객원피스</span>
									<span class="tag">#멀티밤</span>
									<span class="tag">#서큘레이터</span>
									<span class="tag">#유아마스크</span>
									<span class="tag">#하객원피스</span>
									<span class="tag">#멀티밤</span>
									<span class="tag">#서큘레이터</span>
								</div>
							</div>
						</div>
					</div>
				</div>

				<div class="list_item banner">
					<div class="w_100 h_100 shop_border">
						<img src="https://via.placeholder.com/150">
					</div>
				</div>

				<div class="list_item"></div>
				<div class="list_item"></div>

				<div class="list_item"></div>
				<div class="list_item"></div>
				<div class="list_item"></div>
				<div class="list_item"></div>
			</div>
		</div>
	</main>
</body>
#shop_main .list_wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

#shop_main .list_item {
	width: 308px;
	height: 496px;
	background-color: yellow;

	margin-bottom: 20px;
}

#shop_main .list_item.banner img {
	width: 100%;
	height: 100%;
}

#shop_main .list_item .category_wrap {
	overflow: hidden;
}

#shop_main .list_item .category_wrap .category_left {
	float: left;
	
	width: 124px;
	height: 100%;

	background-color: #333949;
}

#shop_main .list_item .category_wrap .category_left h3 {
	padding: 14px 0 14px 13px;
	border-bottom: solid 1px #2b313f;
	font-size: 13px;
	color: rgba(255,255,255,0.46);
}

#shop_main .list_item .category_wrap .category_left ul {

}

#shop_main .list_item .category_wrap .category_left li {

}

#shop_main .list_item .category_wrap .category_left a {
	display: block;
	padding: 7px 8px;

	font-size: 13px;
	color: rgba(255,255,255,0.46);
	font-weight: 700;
}

#shop_main .list_item .category_wrap .category_right {
	float: right;
	
	width: 182px;
	height: 100%;

	background-color: #ffffff;
}

#shop_main .list_item .category_wrap .category_right .category_right_top {
	width: 100%;
	height: 306px;
	border-bottom: solid 1px #e7e7e7;

	text-align: center;
}

#shop_main .list_item .category_wrap .category_right .category_right_top .category_info {
	padding: 20px 0;
	/*text-align: center;*/
}

#shop_main .list_item .category_wrap .category_right .category_right_top .headline,
#shop_main .list_item .category_wrap .category_right .category_right_bottom .headline {
	display: inline-block;

	font-size: 12px;
	border: solid 1px #00ab33;
	color: #00ab33;

	margin-bottom: 7px;
}

#shop_main .list_item .category_wrap .category_right .category_right_top .category_info h3 {
	font-size: 16px;
}

#shop_main .list_item .category_wrap .category_right .category_right_top .category_info .price {
	font-size: 14px;
	color: skyblue;
}

#shop_main .list_item .category_wrap .category_right .category_right_top .image_wrap {
	/*text-align: center;*/
}

#shop_main .list_item .category_wrap .category_right .category_right_bottom {
	padding-top: 20px;

	text-align: center;
}

#shop_main .list_item .category_wrap .category_right .category_right_bottom .tag_wrap .tag {
	display: inline-block;

	width: auto;
	max-width: 75px;
	height: 24px;
	vertical-align: top;
	
	margin: 6px 1px 0 1px;
	padding: 0 5px;

	background-color: #e8eef4;

	line-height: 26px;
	font-size: 11px;
	color: #666;
}

学習内容の難点


前回の実習で問題が発生したように、フォントのサイズが同じであれば、幅と高さの値が大きくなる可能性があります.そのため、レイアウトやレイアウトが歪む可能性があります.

解決策


font-sizeは完全に同じではなく、1 pxまたは2 pxを下げるだけでバッチが実行され、例で要求されるバッチと同様です.

学習の心得.


あらかじめ大きなスペースを作成し、コンテンツを埋め込み、設計とレイアウトを行い、同時にスペースを作成すると、より簡単になります.また,選択者の絶え間ない使用に伴い,選択者の流れにもますます熟知している.