Home > CSS | SmartPhone > 【CSS】iPhoneのデバッグコンソールを開くとmedia属性のorientationが効かなくなる

【CSS】iPhoneのデバッグコンソールを開くとmedia属性のorientationが効かなくなる

iPhoneでコーディング中、 [設定]→[Safari]→[デベロッパ]→[デバッグコンソール]を”オン”にしていると、 下記のようなCSSの切り替えが効かなくなる。

<link rel="stylesheet" type="text/css" href="./css/iphone_portrait.css" media="only screen and (max-device-width:480px) and (orientation:portrait)">
<link rel="stylesheet" type="text/css" href="./css/iphone_landscape.css" media="only screen and (max-device-width:480px) and (orientation:landscape)">

原因は不明。 3GSでも4でも同様の現象が起こる。

とりあえず忘れないようにメモ。

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://unolabo.boo.jp/archives/2011/02/07-iphone%e3%81%ae%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%82%92%e9%96%8b%e3%81%8f%e3%81%a8orientation%e3%81%8c%e5%8a%b9%e3%81%8b%e3%81%aa%e3%81%84.html/trackback
Listed below are links to weblogs that reference
【CSS】iPhoneのデバッグコンソールを開くとmedia属性のorientationが効かなくなる from うのらぼ。

Home > CSS | SmartPhone > 【CSS】iPhoneのデバッグコンソールを開くとmedia属性のorientationが効かなくなる

Search
Feeds
Meta

Return to page top