FA/html๏ผcss
20220923 ๋ชจ๋ฐ์ผ ์ฐฝ์์ input ํด๋ฆญ ์ ํ๋ ๋ฐฉ์ง
๐๐๋ฆผ
2022. 9. 23. 21:35
๋ชจ๋ฐ์ผ์์ input ์ ๋ ฅ์ฐฝ์ ํด๋ฆญํ๋ฉด, ํ๋ฉด์ด ํ๋๋ ๋
ํ๋ฉด ์๋ํ๋ ๋ฐฉ์ง ๋ฐฉ๋ฒ
<head>์ฌ๊ธฐ์ ๋ฃ๊ธฐ~</head> meta ํ๊ทธ๋ฅผ ์ถ๊ฐ (react ๊ฐ์ ๊ฒฝ์ฐ index.html์ ์ถ๊ฐ)
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" >
viewport ์์ฑ
width=device-width | ํ๋ฉด ๋๋น๋ฅผ ๊ธฐ๊ณ ๋๋น๋ก ๋ง์ถค |
initial-scale=1.0 | ์ด๊ธฐ ํ๋ฉด ํฌ๊ธฐ ๋ฐฐ์จ ์ค์ |
minimum-scale=1 | ์ต์ ํ๋ฉด ํฌ๊ธฐ ์ค์ |
maximum-scale=1 | ์ต๋ ํ๋ฉด ํฌ๊ธฐ ์ค์ |
user-scalable=no | ์ฌ์ฉ์๊ฐ ํ๋ฉด ํ๋/์ถ์ ๊ฐ๋ฅ ์ฌ๋ถ ์ค์ |
target-densitydpi=device-dpi | ํด๋น๋๋ฅผ ๊ธฐ๊ธฐ์ ๋ง์ถค ์ค์ |
์ฐธ๊ณ ๋ฐ ์ถ์ฒ
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
Viewport meta tag - HTML: HyperText Markup Language | MDN
This article describes how to use the "viewport" <meta> tag to control the viewport's size and shape.
developer.mozilla.org