๋ชจ๋ฐ์ผ์์ 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
'FA > html๏ผcss' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
20221025 Meta og ํ๊ทธ๋ก ์นด์นด์คํก, sns ๊ณต์ ์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋ง๋ค๊ธฐ (0) | 2022.10.25 |
---|---|
20220921 block / inline-block / inline ์ฐจ์ด์ (0) | 2022.09.21 |
20220920 position ์์ฑ (0) | 2022.09.21 |
20220916 input์์ ๊ธ์ ์ ์ต๋, ์ต์ ์ง์ ํ๊ธฐ (0) | 2022.09.16 |
border-style (0) | 2022.08.17 |