Search

μ •μ νŒŒμΌ μ€€λΉ„

μ •μ νŒŒμΌ μ€€λΉ„

css, img, js λ“± 정적 νŒŒμΌμ„ μ€€λΉ„ν•©λ‹ˆλ‹€.

μž‘μ—… μˆœμ„œ

1.
static 폴더 생성
2.
static
β€’
css 폴더 생성
β—¦
reset.css
β—¦
style.css
β€’
img 폴더 생성
β—¦
logo.png λ“±
β€’
js 폴더 생성
β—¦
script.js
3.
라이브러리
a.
jQuery
b.
Bootstrap
jQuery 및 Bootstrap λΌμ΄λΈŒλŸ¬λ¦¬λŠ” CDN λ°©μ‹μœΌλ‘œ μ‚¬μš©ν•˜κ±°λ‚˜ λ³„λ„λ‘œ νŒŒμΌμ„ μΆ”κ°€ν•©λ‹ˆλ‹€.

μ½”λ“œ

β€’
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
볡사