ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๋ฐ์Šคํฌํƒ‘ ๋ธŒ๋ผ์šฐ์ €, 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)">



๋‚˜์˜ ๋‹จ๋ง๊ธฐ ๋””๋ฐ”์ด์Šค์‚ฌ์ด์ฆˆ ํ™•์ธํ•˜๊ธฐ
 


๋Œ“๊ธ€
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
ยซ   2024/04   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
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
๊ธ€ ๋ณด๊ด€ํ•จ