ํฐ์คํ ๋ฆฌ ๋ทฐ
๋๋ฐ์ด์ค๋ณ ๋ฏธ๋์ด์ฟผ๋ฆฌ(media queries) ์ ์ ์ ๋ฆฌ
nopinokio 2015. 3. 14. 12:12๋ฐ์คํฌํ ๋ธ๋ผ์ฐ์ , iPhone, iPad ๋ชจ๋ฐ์ผ ๋ธ๋ผ์ฐ์ ๋ฑ์ ์คํ์ผ์ํธ๋ฅผ ๊ตฌ๋ถํ๊ธฐ ์ํ
๋ฏธ๋์ด ์ฟผ๋ฆฌ(Media Queries)๋ฅผ Andy Clarke์จ๊ฐ ์ ๋ฆฌํ์ต๋๋ค.
์์ฑ์ผ๋ก ๊ตฌ๋ถํ๋ ๋ฐฉ๋ฒ๊ณผ ํ์ผ๋ก ๊ตฌ๋ถํ๋ ๋๊ฐ์ง ๋ฐฉ๋ฒ์ ๋ชจ๋ ํฌํจํฉ๋๋ค.
[์ถ์ฒ-ํ์ด์ด์ค]
์ถ๊ฐ์ ์ธ ์์ ์ ๊ณ์ ๋ด๊ฐ~
[์ถ์ฒ] ๋๋ฐ์ด์ค๋ณ ๋ฏธ๋์ด์ฟผ๋ฆฌ(media queries) ์ ์ ์ ๋ฆฌ|์์ฑ์ ๋๋น
์์ฑ์ผ๋ก ๊ตฌ๋ถ
/* ์ค๋งํธํฐ ๊ฐ๋ก+์ธ๋ก */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px){ } /* ์ค๋งํธํฐ ๊ฐ๋ก */ @media only screen and (min-width : 321px) { } /* ์ค๋งํธํฐ ์ธ๋ก */ @media only screen and (max-width : 320px) { } /* iPhone4์ ๊ฐ์ ๋์ ํด์๋ ์ธ๋ก */ @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { } /* iPhone4์ ๊ฐ์ ๋์ ํด์๋ ๊ฐ๋ก */ @media only screen and (min-width : 640px) { } /* iPad ๊ฐ๋ก+์ธ๋ก */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { } /* iPad ๊ฐ๋ก */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { } /* iPad ์ธ๋ก */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { } /* ๋ฐ์คํฌํ ๋ธ๋ผ์ฐ์ ๊ฐ๋ก */ @media only screen and (min-width : 1224px) { } /* ํฐ ๋ชจ๋ํฐ */ @media only screen and (min-width : 1824px) { }
ํ์ผ๋ก ๊ตฌ๋ถ
/* ์ค๋งํธํฐ ๊ฐ๋ก+์ธ๋ก */ <link rel="stylesheet" href="smartphone.css" media="only screen and (min-device-width : 320px) and (max-device-width : 480px)"> /* ์ค๋งํธํฐ ๊ฐ๋ก */ <link rel="stylesheet" href="smartphone-landscape.css" media="only screen and (min-width : 321px)"> /* ์ค๋งํธํฐ ์ธ๋ก */ <link rel="stylesheet" href="smartphone-portrait.css" media="only screen and (max-width : 320px)"> /* iPad ๊ฐ๋ก+์ธ๋ก */ <link rel="stylesheet" href="ipad.css" media="only screen and (min-device-width : 768px) and (max-device-width : 1024px)"> /* iPad ๊ฐ๋ก */ <link rel="stylesheet" href="ipad-landscape.css" media="only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape)"> /* iPad ์ธ๋ก */ <link rel="stylesheet" href="ipad-portrait.css" media="only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait)"> /* ๋ฐ์คํฌํ ๋ธ๋ผ์ฐ์ ๊ฐ๋ก */ <link rel="stylesheet" href="widescreen.css" media="only screen and (min-width : 1224px)"> /* ํฐ ๋ชจ๋ํฐ */ <link rel="stylesheet" href="widescreen.css" media="only screen and (min-width : 1824px)"> /* iPhone4์ ๊ฐ์ ๋์ ํด์๋ */ <link rel="stylesheet" href="iphone4.css" media="only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5)">
'์น ์ฝ๋ฉ > htmlL&css' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์น์ ๊ทผ์ฑ ๊ธฐ๋ณธ๊ฐ๋ (0) | 2017.03.21 |
---|---|
์น์ ๊ทผ์ฑ check list (0) | 2017.03.21 |
[CSS + jq] input file css ์คํ์ผ ์กฐ์ (0) | 2015.03.08 |
๊ฐ๋จํ ๋ ์ด์ดํ์ ์์ค [์์ง์X] (0) | 2015.03.04 |
์ฌ์ด์ฆ์ ๋ฐ๋ฅธ ๋ฐ์ํ ์คํ์ผ๋ง (0) | 2015.03.04 |
- Total
- Today
- Yesterday
- W3Schools (W3์ค์ฟจ)
- ์ํ์ฝ๋ฉ
- ์จ์๋ก๊ทธ
- ์น์ ์ฌ๋ํ๋ ์ฌ๋๋ค
- ์์ฏ๋ท์ปด
- Create a new fiddle - JSFiddle
- ThemeForest
- dribbble(๋์์ธ๊ด๋ จ)
- XDSoft plugins(์ ์ด์ฟผ๋ฆฌ ํ๋ฌ๊ทธ์ธ์์ค)
- Free jQuery Plugins and Tutori…
- comfytube: relax (์ฌ์ฆ์์ )
- ์ข์ถฉ์ฐ๋ ์นํผ๋ธ๋ฆฌ์ ์ผ๊ธฐ
- Sensio Arbor
- ์น๋์์ธ ํฌํ ์ต
- ๊ทธ๋ ๊ณ ๊ทธ๋ฐ ์ด์ผ๊ธฐ
- ๊ณต๊ตฐ ๊ณต๊ฐ
- Itnamu์ ํผ์๋๊ธฐ
- ์นํผ๋ธ๋ฆฌ์ ์ ์๋ฐ์คํฌ๋ฆฝํธ&HTML
- ์ ๋ ํธ๋ฐ์ค์ฒดํฌ
- 6์ ์ธ์ผ
- ์นดํ24๋ชจ๋ฐ์ผ
- ์ ์ด์ฟผ๋ฆฌ ๋ก๋ฉ
- jquery๋ก๋ฉ
- ์นดํ24 ๋ชจ๋ฐ์ผ
- ํ ์คํธ์์์ฒดํฌ
- ์ฌ๋ฆฌ๋ธ์
- ๋ก๋ฉ์ด๋ฏธ์ง
- ์นดํ24์ผํ๋ชฐ
- ๋ฅํฐ์ง
- ์นดํ24์ผํ๋ชฐ ๋ชจ๋ฐ์ผ
- ์ด๋ฐ๋์ผ์ด
- ์ฌ๋ฆฌ๋ธ์ 6์ ์ธ์ผ
- ๊ตฌ๊ธ์ง๋
- Ajax๋ก๋ฉ
- ์นดํ24 ์คํจ
- Mac
- ์นดํ24์ผํ๋ชฐ ์คํจ
- ์ฌ๋ฆฌ๋ธ์ ์ธ์ผ
- ํด๋ฆฌ์ค
- ์นดํ24๋ชจ๋ฐ์ผ์นดํ
- ์นดํ24
- ์นดํ24์ผํ๋ชฐ๋ชจ๋ฐ์ผ
- Ajax
- ๋ผ๋์ค๋ฒํผ์ฒดํฌ
- ์กฐํ๋ก๋ฉ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |