“ 지연되는 프로젝트에 인력을 더 투입하면 오히려 더 늦어진다. ”
728x90
이제 곧 있으면 웹디자인 기능사 실기 접수입니당
연습한 유형을 정리하였는데요 일단 3가지만 정리하였습니다
A-2
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A2</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
li {
list-style: none;
}
.wrap {
width: 1200px;
height: 700px;
margin: 0 auto;
}
#header {
width: 100%;
height: 100px;
display: flex;
}
#header h1 {
width: 20%;
height: inherit;
background-color: #eaceff;
}
.nav {
width: 80%;
height: 100px;
background-color: #d8a5ff;
display: flex;
justify-content: flex-end;
align-items: flex-end;
}
.nav > ul {
display: flex;
position: relative;
right: 40px;
}
.nav > ul > li {
position: relative;
}
.nav > ul > li > a {
padding: 10px 40px;
background-color: #f1deff;
display: block;
}
.nav > ul > li > ul {
position: absolute;
left: 0;
top: 40px;
width: 100%;
background-color: #dfafdd;
display: none;
}
.nav > ul > li > ul > li > a {
text-align: center;
padding: 10px;
display: block;
}
#slider {
width: 100%;
height: 300px;
background-color: #9810ff;
}
#contents {
width: 100%;
height: 200px;
display: flex;
}
#contents .cont1 {
width: 33.333%;
height: inherit;
background-color: #cb87ff;
}
#contents .cont2 {
width: 33.333%;
height: inherit;
background-color: #b95dff;
}
#contents .cont3 {
width: 33.333%;
height: inherit;
background-color: #c77dff;
}
#footer {
width: 100%;
height: 100px;
display: flex;
}
#footer .footer1 {
width: 20%;
height: inherit;
background-color: #bc64ff;
}
#footer .footer2 {
width: 60%;
height: inherit;
background-color: #8c42c4;
}
#footer .footer3 {
width: 20%;
height: inherit;
background-color: #7327ae;
}
</style>
</head>
<body>
<div class="wrap">
<header id="header">
<h1></h1>
<nav class="nav">
<ul>
<li>
<a href="#">메뉴1</a>
<ul class="submenu">
<li><a href="#">서브메뉴1-1</a></li>
<li><a href="#">서브메뉴1-2</a></li>
<li><a href="#">서브메뉴1-3</a></li>
<li><a href="#">서브메뉴1-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴2</a>
<ul class="submenu">
<li><a href="#">서브메뉴2-1</a></li>
<li><a href="#">서브메뉴2-2</a></li>
<li><a href="#">서브메뉴2-3</a></li>
<li><a href="#">서브메뉴2-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴3</a>
<ul class="submenu">
<li><a href="#">서브메뉴3-1</a></li>
<li><a href="#">서브메뉴3-2</a></li>
<li><a href="#">서브메뉴3-3</a></li>
<li><a href="#">서브메뉴3-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴4</a>
<ul class="submenu">
<li><a href="#">서브메뉴4-1</a></li>
<li><a href="#">서브메뉴4-2</a></li>
<li><a href="#">서브메뉴4-3</a></li>
<li><a href="#">서브메뉴4-4</a></li>
</ul>
</li>
</ul>
</nav>
</header>
<article id="slider"></article>
<section id="contents">
<div class="cont1"></div>
<div class="cont2"></div>
<div class="cont3"></div>
</section>
<footer id="footer">
<div class="footer1"></div>
<div class="footer2"></div>
<div class="footer3"></div>
</footer>
</div>
</body>
</html>
B-1
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>B1</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
li {
list-style: none;
}
#header {
width: 100%;
height: 100px;
background-color: #555;
}
#header .container {
display: flex;
}
#header h1 {
width: 20%;
height: 100px;
background-color: #d8d8ff;
}
#header .nav {
width: 80%;
background-color: #b7b7ff;
padding: 30px 40px;
}
.nav > ul {
display: flex;
justify-content: right;
}
.nav > ul > li {
position: relative;
}
.nav > ul > li > a {
display: block;
padding: 10px 40px;
background-color: #6565ff;
}
.nav > ul > li > ul {
position: absolute;
left: 0;
top: 41px;
background-color: #adade4;
width: 100%;
display: none;
}
.nav > ul > li > ul > li {}
.nav > ul > li > ul > li > a {
padding: 10px;
display: block;
}
#slider {
height: 300px;
}
#slider .container {
height: 300px;
background-color: #3636ff;
}
#contents {
height: 200px;
}
#contents .container {
display: flex;
}
#contents .cont1 {
width: 33.333%;
height: 200px;
background-color: #8e8ec3;
}
#contents .cont2 {
width: 33.333%;
height: 200px;
background-color: #5b5bd8;
}
#contents .cont3 {
width: 33.333%;
height: 200px;
background-color: #8888ca;
}
#footer {
height: 100px;
background-color: #444;
}
#footer .container {
display: flex;
flex-wrap: wrap;
}
#footer .left {
width: 20%;
height: 100px;
background-color: #4e4ed1;
}
#footer .right {
width: 80%;
height: 100px;
}
#footer .footer1 {
height: 50px;
background-color: #7878d1;
}
#footer .footer2 {
height: 50px;
background-color: #6262a3;
}
.container {
width: 1200px;
height: inherit;
background-color: #00000043;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="wrap">
<header id="header">
<div class="container">
<h1></h1>
<nav class="nav">
<ul>
<li>
<a href="#">메뉴1</a>
<ul class="submenu">
<li><a href="#">서브메뉴1-1</a></li>
<li><a href="#">서브메뉴1-2</a></li>
<li><a href="#">서브메뉴1-3</a></li>
<li><a href="#">서브메뉴1-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴2</a>
<ul class="submenu">
<li><a href="#">서브메뉴2-1</a></li>
<li><a href="#">서브메뉴2-2</a></li>
<li><a href="#">서브메뉴2-3</a></li>
<li><a href="#">서브메뉴2-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴3</a>
<ul class="submenu">
<li><a href="#">서브메뉴3-1</a></li>
<li><a href="#">서브메뉴3-2</a></li>
<li><a href="#">서브메뉴3-3</a></li>
<li><a href="#">서브메뉴3-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴4</a>
<ul class="submenu">
<li><a href="#">서브메뉴4-1</a></li>
<li><a href="#">서브메뉴4-2</a></li>
<li><a href="#">서브메뉴4-3</a></li>
<li><a href="#">서브메뉴4-4</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</header>
<article id="slider">
<div class="container"></div>
</article>
<section id="contents">
<div class="container">
<div class="cont1"></div>
<div class="cont2"></div>
<div class="cont3"></div>
</div>
</section>
<footer id="footer">
<div class="container">
<div class="left"></div>
<div class="right">
<div class="footer1"></div>
<div class="footer2"></div>
</div>
</div>
</footer>
</div>
<script>
document.querySelectorAll(".nav > ul > li").forEach(li => {
li.addEventListener("mouseover", () => {
li.querySelector("ul").style.display = "block";
});
li.addEventListener("mouseout", () => {
li.querySelector("ul").style.display = "none";
});
});
</script>
</body>
</html>
C-1
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>C1</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
li {
list-style: none;
}
.wrap {
width: 1000px;
display: flex;
flex-wrap: wrap;
}
#aside {
width: 200px;
height: 650px;
background-color: #59d261;
}
#aside h1 {
width: 100%;
height: 100px;
background-color: #52ae5a;
}
#nav {
margin: 20px;
width: 80%;
display: inline-block;
text-align: center;
background-color: #81ab84;
}
#nav > ul {
display: flex;
flex-direction: column;
}
#nav > ul > li {
position: relative;
}
#nav > ul > li > a {
display: block;
padding: 10px 40px;
background-color: #64a468;
}
#nav > ul > li > ul {
background-color: #b2d4b4;
display: none;
}
#nav > ul > li > ul > li {}
#nav > ul > li > ul > li > a {
padding: 10px;
display: block;
}
#main {
width: 800px;
height: 650px;
background-color: #333;
}
#slider {
width: 800px;
height: 350px;
background-color: #bbdcbe;
}
#contents {
width: 800px;
height: 200px;
background-color: #555;
display: flex;
}
#contents .cont1 {
width: 35%;
height: inherit;
background-color: #35d642;
}
#contents .cont2 {
width: 30%;
height: inherit;
background-color: #2eb439;
}
#contents .cont3 {
width: 35%;
height: inherit;
background-color: #309d39;
}
#footer {
width: 800px;
height: 100px;
background-color: #666;
display: flex;
}
#footer .left {
width: 20%;
height: inherit;
background-color: #236328;
}
#footer .right {
width: 80%;
height: 100px;
}
#footer .right .footer1 {
width: 100%;
height: 50px;
background-color: #a1fea9;
}
#footer .right .footer2 {
width: 100%;
height: 50px;
background-color: #7cce83;
}
</style>
</head>
<body>
<div class="wrap">
<aside id="aside">
<h1></h1>
<nav id="nav">
<ul>
<li>
<a href="#">메뉴1</a>
<ul class="submenu">
<li><a href="#">서브메뉴1-1</a></li>
<li><a href="#">서브메뉴1-2</a></li>
<li><a href="#">서브메뉴1-3</a></li>
<li><a href="#">서브메뉴1-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴2</a>
<ul class="submenu">
<li><a href="#">서브메뉴2-1</a></li>
<li><a href="#">서브메뉴2-2</a></li>
<li><a href="#">서브메뉴2-3</a></li>
<li><a href="#">서브메뉴2-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴3</a>
<ul class="submenu">
<li><a href="#">서브메뉴3-1</a></li>
<li><a href="#">서브메뉴3-2</a></li>
<li><a href="#">서브메뉴3-3</a></li>
<li><a href="#">서브메뉴3-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴4</a>
<ul class="submenu">
<li><a href="#">서브메뉴4-1</a></li>
<li><a href="#">서브메뉴4-2</a></li>
<li><a href="#">서브메뉴4-3</a></li>
<li><a href="#">서브메뉴4-4</a></li>
</ul>
</li>
</ul>
</nav>
</aside>
<main id="main">
<article id="slider"></article>
<section id="contents">
<div class="cont1"></div>
<div class="cont2"></div>
<div class="cont3"></div>
</section>
<footer id="footer">
<div class="left"></div>
<div class="right">
<div class="footer1"></div>
<div class="footer2"></div>
</div>
</footer>
</main>
</div>
<script>
document.querySelectorAll("#nav > ul > li").forEach(li => {
li.addEventListener("mouseover", () => {
li.querySelector("ul").style.display = "block";
});
li.addEventListener("mouseout", () => {
li.querySelector("ul").style.display = "none";
});
});
</script>
</body>
</html>
D-1
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>웹디자인 기능사 실기 D유형 1번 레이아웃</title>
<style>
* {
margin: 0;
padding: 0;
}
#wrap {
display: flex;
flex-wrap: wrap;
}
#aside {
width: 200px;
height: 850px;
background-color: #ccc;
}
#aside h1 {
width: 100%;
height: 100px;
background-color: #7e7e7e;
}
#aside nav {
width: 100%;
height: 750px;
background-color: #6a6a6a;
}
#main {
width: calc(100% - 200px);
height: 850px;
background-color: #444;
}
#slider {
width: 100%;height: 400px;
background-color: #ffadad;
}
#slider .link {
position: absolute;
right: 0;
top: 0;
width: 100px;
height: 300px;
background-color: #424242;
}
#banner {
width: 100%;height: 200px;
background-color: #f56868;
}
#contents {
width: 100%;height: 250px;
background-color: #ff1c1c;
}
#footer {
width: 100%;
height: 100px;
background-color: rgb(255, 67, 67);
}
</style>
</head>
<body>
<div id="wrap">
<aside id="aside">
<h1></h1>
<nav></nav>
</aside>
<main id="main">
<article id="slider">
<div class="link"></div>
</article>
<article id="banner"></article>
<article id="contents"></article>
</main>
<footer id="footer"></footer>
</div>
</body>
</html>
E-1
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E1</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
li {
list-style: none;
}
#wrap {
width: 100%;
height: 100vh;
}
#main {
width: 100%;
height: calc(100% - 120px);
display: flex;
}
#aside {
width: 200px;
height: calc(100% - 120px);
}
#aside h1 {
width: 100%;
height: 120px;
background-color: #ffe5e8;
}
#aside nav {
width: 100%;
height: 100%;
display: inline-block;
background-color: #ffcbd1;
padding: 20px 10px;
}
.nav > ul {
width: 180px;
display: flex;
flex-direction: column;
}
.nav > ul > li {
position: relative;
}
.nav > ul > li > a {
display: block;
padding: 10px;
background-color: #ffb6be;
}
.nav > ul > li > a:active,
.nav > ul > li > a:hover {
background-color: #ff96a2;
}
.nav > ul > li > ul {
background-color: #ff7b8b;
display: none;
}
.nav > ul > li > ul > li {}
.nav > ul > li > ul > li > a {
padding: 10px;
display: block;
}
.nav > ul > li > ul > li > a:active,
.nav > ul > li > ul > li > a:hover {
background-color: #ff687a;
}
#contents {
width: 400px;
height: 100%;
}
.cont1 {
width: 100%;
height: 20%;
background-color: #e0c1c4;
}
.cont2 {
width: 100%;
height: 30%;
background-color: #d8a7ad;
}
.cont3 {
width: 100%;
height: 30%;
background-color: #db8790;
}
.cont4 {
width: 100%;
height: 20%;
background-color: #db707d;
}
#slider {
width: calc(100% - 200px - 400px);
background-color: #d64455;
}
#footer {
width: 100%;
height: 120px;
display: flex;
}
.footer1 {
width: 200px;
height: 120px;
background-color: #d68a93;
}
.footer2 {
width: calc(100% - 200px);
}
.footer2-1 {
width: 100%;
height: 60px;
background-color: #fce0e3;
}
.footer2-2 {
width: 100%;
height: 60px;
background-color: #e2b9bd;
}
</style>
</head>
<body>
<div id="wrap">
<main id="main">
<aside id="aside">
<h1></h1>
<nav class="nav">
<ul>
<li>
<a href="#">메뉴1</a>
<ul class="submenu">
<li><a href="#">서브메뉴1-1</a></li>
<li><a href="#">서브메뉴1-2</a></li>
<li><a href="#">서브메뉴1-3</a></li>
<li><a href="#">서브메뉴1-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴2</a>
<ul class="submenu">
<li><a href="#">서브메뉴2-1</a></li>
<li><a href="#">서브메뉴2-2</a></li>
<li><a href="#">서브메뉴2-3</a></li>
<li><a href="#">서브메뉴2-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴3</a>
<ul class="submenu">
<li><a href="#">서브메뉴3-1</a></li>
<li><a href="#">서브메뉴3-2</a></li>
<li><a href="#">서브메뉴3-3</a></li>
<li><a href="#">서브메뉴3-4</a></li>
</ul>
</li>
<li>
<a href="#">메뉴4</a>
<ul class="submenu">
<li><a href="#">서브메뉴4-1</a></li>
<li><a href="#">서브메뉴4-2</a></li>
<li><a href="#">서브메뉴4-3</a></li>
<li><a href="#">서브메뉴4-4</a></li>
</ul>
</li>
</ul>
</nav>
</aside>
<article id="contents">
<div class="cont1"></div>
<div class="cont2"></div>
<div class="cont3"></div>
<div class="cont4"></div>
</article>
<article id="slider"></article>
</main>
<footer id="footer">
<div class="footer1"></div>
<div class="footer2">
<div class="footer2-1"></div>
<div class="footer2-2"></div>
</div>
</footer>
</div>
<script>
document.querySelectorAll(".nav > ul > li").forEach(li => {
li.addEventListener("mouseover", () => {
li.querySelector("ul").style.display = "block";
});
li.addEventListener("mouseout", () => {
li.querySelector("ul").style.display = "none";
});
});
</script>
</body>
</html>