css
文書の過去の版を表示しています。
CSS
CSS振り分け
iPhone用のview port設定(拡大縮小の禁止設定)
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
iPhone、iPad用にCSS振り分け
<!-- iPhone --> <link rel="stylesheet" media="screen and (max-device-width: 480px)" href="iphone.css"> <!-- iPhone Not Retina --> <link rel="stylesheet" media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 1)" href="iphone3.css"> <!-- iPhone Retina --> <link rel="stylesheet" media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)" href="iphone4.css"> <!-- iPad --> <link rel="stylesheet" media="screen and (min-device-width: 481px) and (max-device-width: 1024px)" href="iPad.css"> <!-- iPad 縦表示 --> <link rel="stylesheet" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" href="iPadPortrait.css"> <!-- iPad 横表示 --> <link rel="stylesheet" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" href="iPadLandscape.css"> <!-- PC用 --> <link rel="stylesheet" media="screen and (min-device-width: 1025px)" href="pc.css">
css.1299818730.txt.gz · 最終更新: 2011/05/21 10:01 (外部編集)