๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

CSS16

CSS ์• ๋‹ˆ๋ฉ”์ด์…˜ 7. ์น˜์ฆˆ์ฒ˜๋Ÿผ ๋Š˜์–ด๋‚˜๋Š” ์œก๋ฉด์ฒด See the Pen amine by Youcodein (@youCodein) on CodePen. 2022. 9. 22.
CSS ์• ๋‹ˆ๋ฉ”์ด์…˜ 6. ํ†ตํ†ต ํŠ€๋Š” ๊ธ€์ž See the Pen Untitled by Youcodein (@youCodein) on CodePen. 2022. 9. 22.
CSS ์• ๋‹ˆ๋ฉ”์ด์…˜ 5. ๋งˆ์šฐ์Šค ์˜ค๋ฒ„ ์• ๋‹ˆ๋ฉ”์ด์…˜ See the Pen MouseHoverEffect by Youcodein (@youCodein) on CodePen. 2022. 9. 21.
CSS ์• ๋‹ˆ๋ฉ”์ด์…˜ 4 - ์›จ์ด๋ธŒ ์• ๋‹ˆ๋ฉ”์ด์…˜ See the Pen Untitled by Youcodein (@youCodein) on CodePen. 2022. 9. 21.
์• ๋‹ˆ๋ฉ”์ด์…˜ 3 ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋งŒ๋“ค๊ธฐ HTML๊ณผ CSS๋ฅผ ์ด์šฉํ•˜์—ฌ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค. ์˜ˆ์‹œ ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค HTML ์†Œ์Šค CSS ์†Œ์Šค * { box-sizing: border-box; } body { background: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%); width:100vw; height:100vh; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0; } .wrapper { position: absolute; animation: x 1s ease-in-out alternate infinite 0s both; } .wrapper:nth-of-type(2) {animat.. 2022. 9. 2.
์• ๋‹ˆ๋ฉ”์ด์…˜2 ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋งŒ๋“ค๊ธฐ HTML๊ณผ CSS๋ฅผ ์ด์šฉํ•˜์—ฌ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค. ์˜ˆ์‹œ ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค HTML ์†Œ์Šค > CSS ์†Œ์Šค body { height: 100vh; background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%) } .loading { position: absolute; left: 50%; top: 50%; width: 20px; height: 150px; animation: loading 1s ease infinite; } .loading .circle1 { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; } .loading .circle2.. 2022. 8. 30.
์• ๋‹ˆ๋ฉ”์ด์…˜1 ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋งŒ๋“ค๊ธฐ HTML๊ณผ CSS๋ฅผ ์ด์šฉํ•˜์—ฌ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค. ์˜ˆ์‹œ ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค HTML ์†Œ์Šค CSS ์†Œ์Šค body { height: 100vh; background-image: linear-gradient(to top, skyblue, pink) } .box { width: 50px; height: 50px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } .box::before { content: ''; width: 50px; height: 5px; background: #000; position: absolute; top: 58px; left: 0; border-radius: 50%; opacity: 0.2.. 2022. 8. 30.
์š”์†Œ ์ˆจ๊ธฐ๊ธฐ CSS์—์„œ ์š”์†Œ๋ฅผ ์ˆจ๊ธฐ๋Š” ๋ฐฉ๋ฒ• CSS์—์„œ ์š”์†Œ๋ฅผ ์ˆจ๊ธฐ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. display: none; ์ด ์†์„ฑ์„ ์ ์šฉํ•˜๋ฉด ์š”์†Œ๊ฐ€ ์™„์ „ํžˆ ์‚ฌ๋ผ์ง‘๋‹ˆ๋‹ค. ์š”์†Œ๊ฐ€ ์—†๋Š” ๊ฑธ๋กœ ๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ ‘๊ทผ์„ฑ์ด ์•„์˜ˆ ์—†์Šต๋‹ˆ๋‹ค. ์กด์žฌํ•˜์ง€ ์•Š๋Š” ์š”์†Œ์ด๊ธฐ๋•Œ๋ฌธ์— ๊ณต๊ฐ„ ๋˜ํ•œ ์ฐจ์ง€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. visibility: hidden; ์š”์†Œ๊ฐ€ ๋ณด์ด์ง€ ์•Š์ง€๋งŒ ์š”์†Œ๊ฐ€ ์žˆ์—ˆ๋˜ ๋†’์ด๊ฐ’๋งŒํผ ๊ณต๊ฐ„์ด ๋‚จ์•„์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ ์š”์†Œ๊ฐ€ ์กด์žฌํ•˜์ง€๋งŒ ๋ณด์ด์ง€๋งŒ ์•Š๊ฒŒ ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์š”์†Œ๊ฐ€ ๋‚จ์•„์žˆ๊ธฐ๋•Œ๋ฌธ์— ์ ‘๊ทผ์„ฑ์€ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ ๋ถˆํ•„์š”ํ•œ ๊ณต๊ฐ„์ด ์ƒ๊ฒจ๋ฒ„๋ฆฝ๋‹ˆ๋‹ค. width: 0; height: 0; ํŠน์ • ์š”์†Œ์˜ ๋„ˆ๋น„์™€ ๋†’์ด๋ฅผ 0์œผ๋กœ ์„ค์ •ํ•˜์—ฌ ์ˆจ๊ธฐ๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. transform: scale(0); ์‹œ๊ฐ์ ์œผ๋กœ ์—˜๋ฆฌ๋จผํŠธ๋ฅผ ๊ฐ์ถ”์ง€๋งŒ, ๋นˆ ๊ณต๊ฐ„์ด ๋‚จ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์Šคํฌ.. 2022. 8. 26.
์ƒ‰ ํ‘œํ˜„ ์ƒ‰์ƒ ํ‘œํ˜„ ๋ฐฉ๋ฒ• CSS์—์„œ ์ƒ‰์„ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์„ธ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. 1. ์ƒ‰์ƒ ์ด๋ฆ„์œผ๋กœ ํ‘œํ˜„ 2. RGB ์ƒ‰์ƒ๊ฐ’์œผ๋กœ ํ‘œํ˜„ 3. 16์ง„์ˆ˜ ์ƒ‰์ƒ๊ฐ’์œผ๋กœ ํ‘œํ˜„ ์ƒ‰์ƒ ์ด๋ฆ„์œผ๋กœ ํ‘œํ˜„ ์ƒ‰์ƒ ์ด๋ฆ„์œผ๋กœ ํ‘œํ˜„์ด ๊ฐ€๋Šฅํ•˜๋‹ค. W3C์—์„œ ์ •์˜ํ•œ 16๊ฐœ์˜ HTML4 ํ‘œ์ค€ ์ƒ‰์ƒ ์ด๋ฆ„์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal white yellow RGB ์ƒ‰์ƒ๊ฐ’์œผ๋กœ ํ‘œํ˜„ ๋ชจ๋‹ˆํ„ฐ๋‚˜ ์Šคํฌ๋ฆฐ์€ ๋นจ๊ฐ„์ƒ‰(Red), ๋…น์ƒ‰(Green), ํŒŒ๋ž€์ƒ‰(Blue)์„ ํ˜ผํ•ฉํ•˜์—ฌ ์ƒ‰์„ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ HTML์—์„œ๋„ ์ด ์„ธ ๊ฐ€์ง€ ์ƒ‰์„ ๊ฐ€์ง€๊ณ  ์ƒ‰์„ ํ‘œํ˜„ํ•˜๋Š” RGB ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. RGB ์ƒ‰์ƒ์˜ ๊ธฐ๋ณธ์ƒ‰(Red, G.. 2022. 8. 24.
CSS ๋‹จ์œ„ ํ‘œํ˜„ ๋‹จ์œ„์˜ ๊ณ ์ฐฐ CSS๋Š” ๊ธธ์ด๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ๋ช‡๊ฐ€์ง€ ๋‹ค๋ฅธ ๋‹จ์œ„๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ค๋Š˜์€ ์ด ๋‹จ์œ„์˜ ์ข…๋ฅ˜๋“ค์„ ์•Œ์•„๋ณด๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. 1.์ˆซ์ž์™€ ๋‹จ์œ„ ์‚ฌ์ด์—๋Š” ๊ณต๋ฐฑ์„ ์“ธ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. 2. 0์€ ๋‹จ์œ„ ์ƒ๋žต์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. 3. ์ผ๋ถ€ CSS ์†์„ฑ์˜ ๊ฒฝ์šฐ ์Œ์ˆ˜ ๊ธธ์ด๊ฐ€ ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค. ์ ˆ๋Œ€ ๊ธธ์ด ๋‹จ์œ„ ๋‹ค์Œ์€ ๋ชจ๋‘ ์ ˆ๋Œ€ ๊ธธ์ด ๋‹จ์œ„์ž…๋‹ˆ๋‹ค. ๊ณ ์ •๋œ ๊ฐ’์„ ์ถœ๋ ฅํ•˜๋ฉฐ ์ ˆ๋Œ€ ํฌ๊ธฐ๊ฐ€ ๋ณ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ ํฌ๊ธฐ๊ฐ€ ๊ฐ€๋ณ€์ ์ธ ์›น์‚ฌ์ดํŠธ๊ฐ€ ์•„๋‹Œ ๊ฒฝ์šฐ์—๋Š” ์œ ์šฉํ•˜๋‚˜, ๋ฐ˜์‘ํ˜• ์‚ฌ์ดํŠธ์— ์ ์šฉํ•˜๋Š”๋ฐ๋Š” ๋ณต์žกํ•˜๋‹ค๋Š” ๋‹จ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ๋กœ ํ”ฝ์…€ ๊ฐ’์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๋‹จ์œ„ ์ด๋ฆ„ ๋‹ค์Œ๊ณผ ๋™์ผํ•จ cm ์„ผํ‹ฐ๋ฏธํ„ฐ 1cm = 96px/2.54 mm ๋ฐ€๋ฆฌ๋ฏธํ„ฐ 1mm = 1/10th of 1cm Q 4๋ถ„์˜ 1 ๋ฐ€๋ฆฌ๋ฏธํ„ฐ 1Q = 1/40th of 1cm in ์ธ์น˜ 1in = 2.54.. 2022. 8. 23.
์ด๋ฏธ์ง€ ํ‘œํ˜„ ์ด๋ฏธ์ง€ ํ‘œํ˜„ ์ด๋ฒˆ์—๋Š” ์‚ฌ์ดํŠธ์—์„œ ์ด๋ฏธ์ง€๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ• / ์ด๋ฏธ์ง€ ์Šคํ”„๋ผ์ดํŠธ ๊ธฐ๋ฒ•/ ir ํšจ๊ณผ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด๋ฏธ์ง€ ํ‘œํ˜„ ๋ฐฉ๋ฒ• -html์˜ ๊ฒฝ์šฐ 1.img ํƒœ๊ทธ๋กœ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค.(์˜๋ฏธ๊ฐ€ ์žˆ์„ ๋•Œ, ์—†์œผ๋ฉด ์ด ์‚ฌ์ดํŠธ์ธ์ง€ ๋ชจ๋ฅผ ๋•Œ) 2.alt ํƒœ๊ทธ๋Š” ๋Œ€์ฒด ๋ฌธ์ž๋ฅผ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค. -css์˜ ๊ฒฝ์šฐ 1.background ์†์„ฑ์œผ๋กœ ํ‘œํ˜„(์˜๋ฏธ๊ฐ€ ์—†์„ ๋•Œ_์žฅ์‹์šฉ) 2.๋Œ€์ฒด ๋ฌธ์ž๋Š” ํ•„์š”ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด๋ฏธ์ง€ ๋ฐฑ๊ทธ๋ผ์šด๋“œ css๋กœ ์†์„ฑ์„ ์ฃผ๊ณ  ์ด๋ฏธ์ง€๋ฅผ ๋„ฃ๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. background : url('์ด๋ฏธ์ง€์ฃผ์†Œ'); background-image : url('์ด๋ฏธ์ง€์ฃผ์†Œ'); ์ด๋ฏธ์ง€ ์Šคํ”„๋ผ์ดํŠธ ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€๋ฅผ ํ•˜๋‚˜์˜ ํŒŒ์ผ๋กœ ์ œ์ž‘ํ•œ ํ›„ background-position ์†์„ฑ์„ ์ด์šฉํ•˜์—ฌ ์ด๋ฏธ์ง€๋ฅผ ๋ฐฐ์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.. 2022. 8. 22.
Scss๋กœ ๊ฐ•์•„์ง€ ๋งŒ๋“ค๊ธฐ Scss Sass(SCSS)๋Š” Syntactically Awesome StyleSheet์˜ ์•ฝ์–ด์ด๋ฉฐ ์ฝ”๋“œ์˜ ์žฌํ™œ์šฉ์„ฑ์„ ์˜ฌ๋ฆฌ๊ณ , ๊ฐ€๋…์„ฑ์„ ์˜ฌ๋ฆฌ๋Š” ๋“ฑ CSS์—์„œ ๋ณด์ด๋˜ ๋‹จ์ ์„ ๋ณด์™„ํ•˜๊ณ , ๊ฐœ๋ฐœ์˜ ํšจ์œจ์„ ์˜ฌ๋ฆฌ๊ธฐ ์œ„ํ•ด ๋“ฑ์žฅํ•œ CSS ์ „์ฒ˜๋ฆฌ๊ธฐ ์–ธ์–ด์ž…๋‹ˆ๋‹ค. ์˜ˆ์‹œ Pug์™€ Scss๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ฐ•์•„์ง€๋ฅผ ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค. Pug์™€ Scss์†Œ์Šค๋Š” codepen์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”. HTML ์†Œ์Šค(Pug๋ณ€ํ™˜) CSS ์†Œ์Šค (Scss๋ณ€ํ™˜) body { display: flex; flex-direction: column; justify-content: center; align-items: center; } html, body { background: #FFE16E; width: 100%; height: 100%; margin: 0; pa.. 2022. 8. 18.
Scss Scss Sass(SCSS)๋Š” Syntactically Awesome StyleSheet์˜ ์•ฝ์–ด์ด๋ฉฐ ์ฝ”๋“œ์˜ ์žฌํ™œ์šฉ์„ฑ์„ ์˜ฌ๋ฆฌ๊ณ , ๊ฐ€๋…์„ฑ์„ ์˜ฌ๋ฆฌ๋Š” ๋“ฑ CSS์—์„œ ๋ณด์ด๋˜ ๋‹จ์ ์„ ๋ณด์™„ํ•˜๊ณ , ๊ฐœ๋ฐœ์˜ ํšจ์œจ์„ ์˜ฌ๋ฆฌ๊ธฐ ์œ„ํ•ด ๋“ฑ์žฅํ•œ CSS ์ „์ฒ˜๋ฆฌ๊ธฐ ์–ธ์–ด์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉ ์ด์œ  ์ž‘์—…์ด ํฌ๊ณ  ๊ณ ๋„ํ™” ๋ ์ˆ˜๋ก CSS๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ๋ถˆํŽธํ•จ์ด ์ƒ๊น๋‹ˆ๋‹ค. ์ด์— SCSS์™€ Sass๋Š” CSS ์ž‘์—…์„ ์‰ฝ๊ฒŒ ํ•ด์ฃผ๋ฉฐ ๊ฐ€๋…์„ฑ๊ณผ ์žฌ์‚ฌ์šฉ์„ฑ์„ ๋†’์—ฌ์ฃผ์–ด ์œ ์ง€๋ณด์ˆ˜๊ฐ€ ์‰ฌ์›Œ์ง€๊ฒŒ ๋„์™€์ค๋‹ˆ๋‹ค. ๋˜ํ•œ Sass๋Š” ๋ณ€์ˆ˜์˜ ์‚ฌ์šฉ ์กฐ๊ฑด๋ฌธ๊ณผ ๋ฐ˜๋ณต๋ฌธ Import Nesting Mixin Extend/Inheritance ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ถ”๊ฐ€ ๊ธฐ๋Šฅ๊ณผ ์œ ์šฉํ•œ ๋„๊ตฌ๋“ค์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. CSS์™€ ๋น„๊ตํ•˜์˜€์„ ๋•Œ Scss๋Š” 1. CSS๋ณด๋‹ค ์‹ฌํ”Œํ•œ ํ‘œ๊ธฐ๋ฒ•์œผ๋กœ CSS๋ฅผ ๊ตฌ์กฐํ™”ํ•˜์—ฌ ํ‘œํ˜„ ๊ฐ€๋Šฅ. 2. .. 2022. 8. 18.
๋ฏธ๋””์–ด ์ฟผ๋ฆฌ ๋ฏธ๋””์–ด์ฟผ๋ฆฌ ๋ทฐํฌํŠธ์˜ ํ•ด์ƒ๋„์— ๋”ฐ๋ผ CSS๋ฅผ ๋ถ„๊ธฐ์‹œํ‚ค๋Š” ๋ฏธ๋””์–ด ์ฟผ๋ฆฌ๋Š” ๋ฐ˜์‘ํ˜• ํ”„๋กœ์ ํŠธ์—์„œ ๋ฐ˜๋“œ์‹œ ํ•„์š”ํ•œ ๊ธฐ๋ฒ•์ž…๋‹ˆ๋‹ค. 1. ์ตœ์†Œ ๊ฐ€๋กœํญ์ด 1000px๋ณด๋‹ค ๋„“์€ ํ•ด์ƒ๋„์ผ ๋•Œ style_pc.css๋ฅผ ์—ฐ๊ฒฐํ•œ๋‹ค๋Š” ๋œป์ž…๋‹ˆ๋‹ค. ํฌ๋กฌ ๋ธŒ๋ผ์šฐ์ €์—์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์—ด๊ณ  Toggle device Toolbar๋ฅผ ๋ˆ„๋ฅด๋ฉด ๊ธฐ๊ธฐ๋งˆ๋‹ค์˜ ํ•ด์ƒ๋„๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๊ณ  ๊ธฐ๊ธฐ ๋ชจ๋ธ๋„ ์ถ”๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ๋‹ค์Œ ํŠธ๋กœ์ด (http://troy.labs.daum.net/) ์—์„œ๋Š” ๊ธฐ๊ธฐ๋ณ„ ํ•ด์ƒ๋„๋ฅผ ์ œ๊ณตํ•˜๊ณ  ์‹ค์ œ ์ž‘๋™ ํ™”๋ฉด์„ ํ™•์ธํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋ฐ”์ผ ๊ธฐ๊ธฐ ๊ฐ€๋กœ ์„ธ๋กœ iPhone X 375 812 iPhone 6, 7, 8 375 667 iPhone 6, 7, 8 plus 414 736 iPhone 5 32.. 2022. 8. 16.
CSS ๊ธฐ๋ณธ ๊ทœ์น™ ๊ธฐ๋ณธ ๊ทœ์น™ CSS๋ฅผ ๋‹ค๋ฃจ๊ธฐ ์œ„ํ•ด์„œ๋Š” ๊ธฐ์ดˆ์ ์ธ ํŠน์ง•๊ณผ ๊ธฐ๋ณธ ๋ฌธ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ€์žฅ ๊ธฐ๋ณธ์ด๊ธฐ ๋•Œ๋ฌธ์— ์ด ๋ถ€๋ถ„์„ ์ˆ™์ง€ํ•˜๊ณ  CSS๋ฅผ ๊ณต๋ถ€ํ•˜์„ธ์š”! CSS๋ž€ CSS๋Š” Cascading Style Sheets์˜ ์•ฝ์ž๋กœ HTML ์š”์†Œ๋“ค์ด ๊ฐ์ข… ๋ฏธ๋””์–ด์—์„œ ์–ด๋–ป๊ฒŒ ๋ณด์ด๋Š”๊ฐ€๋ฅผ ์ •์˜ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ์Šคํƒ€์ผ ์‹œํŠธ ์–ธ์–ด์ž…๋‹ˆ๋‹ค. HTML์ด ์ •๋ณด๋ฅผ ํ‘œํ˜„ํ•œ๋‹ค๋ฉด CSS๋Š” HTML๋ฌธ์„œ๋ฅผ ์‹œ์ž‘์ ์œผ๋กœ ์ด์˜๊ฒŒ ๊พธ๋ฉฐ์ฃผ๋Š” ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค. CSS๋ฅผ ์ •์˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ๋‚ด๋ถ€ ์Šคํƒ€์ผ์‹œํŠธ, ์™ธ๋ถ€ ์Šคํƒ€์ผ์‹œํŠธ, ์ธ๋ผ์ธ ์Šคํƒ€์ผ์‹œํŠธ ๋“ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค. 1. ๋‚ด๋ถ€ ์Šคํƒ€์ผ์‹œํŠธ CSS๋ฅผ HTML ๋ฌธ์„œ ์•ˆ์— ํƒœ๊ทธ๋กœ ๊ธฐ์žฌํ•˜์—ฌ HTML๋ฌธ์„œ ์•ˆ์— CSS๊ฐ€ ํ•จ๊ป˜ ์ €์žฅ๋˜๋„๋ก ํ•˜๋Š” ํ˜•ํƒœ์ž…๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋ฅผ ๊ธฐ์˜๊ฒŒ ํ•˜๋Š” ๊ฒƒ๋“ค ์šฐ๋ฆฌ๋ฅผ ๊ธฐ์˜๊ฒŒ ํ•˜๋Š” ๊ฒƒ๋“ค. 2. ์™ธ๋ถ€ ์Šคํƒ€์ผ์‹œํŠธ ์Šคํƒ€์ผ ์†์„ฑ๋“ค์„.. 2022. 8. 15.
01. ๋น„ํŠธ๋งต๊ณผ ๋ฒกํ„ฐ ๋””์ง€ํ„ธ ์ด๋ฏธ์ง€(Digital Images) ๋””์ง€ํ„ธ ์ด๋ฏธ์ง€(Digital Image) ๋˜๋Š” "์ด๋ฏธ์ง€"๋ผ๊ณ  ๋ถˆ๋ฆฌ๋Š” ์šฉ์–ด๋Š” ๋””์ง€ํ„ธ ์นด๋ฉ”๋ผ๋ฅผ ์ด์šฉํ•˜์—ฌ ํ˜„์‹ค์„ธ๊ณ„์˜ ์‚ฌ๋ฌผ์„ ์ดฌ์˜ํ•˜๊ฑฐ๋‚˜ ์Šค์บ๋„ˆ๋ฅผ ์ด์šฉํ•˜์—ฌ ์‚ฌ์ง„์ด๋‚˜ ๊ทธ๋ฆผ์„ ๋””์ง€ํ„ธ ํ˜•ํƒœ๋กœ ๋ฐ›์•„๋“ค์ธ ๊ฒƒ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฏธ์ง€๋ฅผ ๋””์ง€ํ„ธํ™” ํ•˜๋Š” ๋ฐฉ์‹์€ ํฌ๊ฒŒ ๋น„ํŠธ๋งต ๋ฐฉ์‹๊ณผ ๋ฒกํ„ฐ ๋ฐฉ์‹์œผ๋กœ ๋‚˜๋‰ฉ๋‹ˆ๋‹ค. Pixel ํ”ฝ์…€์ด๋ž€ Picture(๊ทธ๋ฆผ) + Element(์›์†Œ)์˜ ํ•ฉ์„ฑ์–ด๋กœ์„œ ํ™”์†Œ๋ผ๊ณ ๋„ ํ•˜๋Š” ํ™”๋ฉด์„ ๊ตฌ์„ฑํ•˜๋Š” ๊ฐ€์žฅ ๊ธฐ๋ณธ์ด ๋˜๋Š” ๋‹จ์œ„์ž…๋‹ˆ๋‹ค. ์ด ์  ํ•˜๋‚˜์— ํ•ด๋‹น ์ƒ‰์˜ ์ •๋ณด(๋นจ๊ฐ„์ƒ‰, ๋…น์ƒ‰, ํŒŒ๋ž€์ƒ‰, ํˆฌ๋ช…๋„ ๋“ฑ)๊ฐ€ ๋‹ด๊ฒจ์ ธ ์žˆ์œผ๋ฉฐ, ์ด๋Š” ๊ณง ๊ทธ๋ฆผ์˜ ์šฉ๋Ÿ‰๊ณผ ์ง๊ฒฐ๋ฉ๋‹ˆ๋‹ค. ๋น„ํŠธ๋งต(Bitmap) ๋ฐฉ์‹ ๋น„ํŠธ๋งต ๋ฐฉ์‹์€ '๋น„ํŠธ์˜ ์ง€๋„(Map of bits)'๋ผ๋Š” ๋œป์œผ๋กœ, ๊ฐ ํ”ฝ์…€์— ์ €์žฅ๋œ ๋น„ํŠธ ์ •๋ณด๊ฐ€ ์ง‘ํ•ฉ๋œ.. 2022. 8. 10.
728x90
๋ฐ˜์‘ํ˜•