μ μ νμΌ μ€λΉ
css, img, js λ± μ μ νμΌμ μ€λΉν©λλ€.
μμ μμ
1.
static ν΄λ μμ±
2.
static
β’
css ν΄λ μμ±
β¦
reset.css
β¦
style.css
β’
img ν΄λ μμ±
β¦
logo.png λ±
β’
js ν΄λ μμ±
β¦
script.js
3.
λΌμ΄λΈλ¬λ¦¬
a.
jQuery
b.
Bootstrap
μ½λ
β’
reset.css
β’
style.css
β’
script.js
reset.css
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR&display=swap');
/*reset*/
* {margin: 0; padding: 0; box-sizing: border-box; }
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, tbody, tfoot, thead, tr, th, td{margin:0;padding:0;}
h1, h2, h3, h4, h5, h6 {font-weight: 700; font-size: inherit;}
a {text-decoration: inherit; color: inherit;}
li {list-style: none;}
img {vertical-align: middle;}
a img {border: none;}
a:focus {outline: none}
button:focus {outline: none}
body {
font-family: 'Noto Sans KR', sans-serif;
}
/* κΈμ¨ λλκ·Έ μ, μνλ₯Ό μ§μ νλ μ νμ */
::selection {
background-color: var(--main-color);
color: white;
}
/* β CSS λ³μ μ μΈ */
/* --λ³μλͺ
: κ° */
/* β
μ¬μ© : var(--λ³μλͺ
) */
/* html μ΅μμ μμ μ ν (html μ νλ³΄λ€ λμ μ°μ μμ */
:root {
/* π©βπ¨ λ©μΈ μ»¬λ¬ */
--main-color : #DCE6FF;
/* π©βπ¨ μλΈ μ»¬λ¬ */
--sub-color: #89B1FF;
/* π©βπ¨ ν°νΈ μ¬μ΄μ¦ */
--text-title: 32px;
--text-normal: 16px;
/* π©βπ¨ 컨ν
μ΄λ μ¬μ΄μ¦ */
--container-size: 1200px;
--container-lg-size: 1400px;
}
CSS
볡μ¬
style.css
@charset "UTF-8";
.container,
header,
footer
{
width: var(--container-size);
margin: 0 auto;
}
section {
margin: 100px auto;
min-height: 300px;
}
.text-title {
font-size: 32px;
}
CSS
볡μ¬
script.js
document.addEventListener("DOMContentListener", function() {
alert("Hello JSP Project~!")
})
JavaScript
볡μ¬