MapleStory Finger Point

๐Ÿ”ด WEB/Web ๊ฐœ๋…์ •๋ฆฌ

ViewPort (๋ทฐํฌํŠธ)

HYEJU01 2023. 7. 7. 16:58

 

 

ViewPort : ์‚ฌ์šฉ์ž๊ฐ€ ๋ณผ ์ˆ˜ ์žˆ๋Š” ์›นํŽ˜์ด์ง€ ๊ณต๊ฐ„

 

Viewport  ์˜ ํ‘œ์‹œ ์˜์—ญ์€ ์žฅ์น˜๋ณ„๋กœ ๋‹ค๋ฅด๋‹ค.

 

 

๋ทฐํฌํŠธ๋ฅผ ์ œ์–ดํ•˜๊ธฐ์œ„ํ•ด์„œ๋Š” ๋ชจ๋“  ์›นํŽ˜์ด์ง€์— ์•„๋ž˜ ์š”์†Œ๋ฅผ ํฌํ•จ์‹œ์ผœ์•ผํ•œ๋‹ค.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

 

์ด ๋ถ€๋ถ„์€ ์žฅ์น˜์˜ ํ™”๋ฉด ๋„ˆ๋น„๋ฅผ ๋”ฐ๋ฅผ ์ˆ˜ ์žˆ๋„๋ก ํŽ˜์ด์ง€ ๋„ˆ๋น„๋ฅผ ์„ค์ •ํ•จ

width=device-width

 

์ด ๋ถ€๋ถ„์€ ํŽ˜์ด์ง€๊ฐ€ ๋ธŒ๋ผ์šฐ์ €์— ์ฒ˜์Œ ๋กœ๋“œ ๋  ๋•Œ ์ดˆ๊ธฐ ํ™•๋Œ€/์ถ•์†Œ ์ˆ˜์ค€์„ ์„ค์ •ํ•จ

initial-scale=1.0

 

 

์ถ”๊ฐ€ ๊ทœ์น™ 

https://www.w3schools.com/css/css_rwd_viewport.asp