サイトを RWD (後輪駆動ではない) に変換する作業をしていて、突然問題が発生しました。
診断の一環として、css ファイルをバックトラックして、mobile.css への唯一の変更が #000 から #FFF への背景の色になるようにしました。これにより、変更がいつ有効になるかを確認できますが、それを取得できません。スタイルシートを切り替えます。
ヘッドセクション内に順番にあるタグは次のとおりです
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://www.your-adrenaline-fix.com/about.html">
<!-- no-rss -->
<title>About Me and How to Contact Me</title>
<meta name="Description" content="About Me and How to Reach Me with Questions, Comments or Suggestions.">
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 480px)" href="support-files/mobile.css"/>
<?php include 'z-end-of-head.php'; ?> //This houses the standard style sheet along with GA code etc
</head>
ここにページがあります: http://www.your-adrenaline-fix.com/about.html
サイトがスタイル シート間で切り替えられなくなった理由を誰かが教えてくれたら、タグを動かしてみましたが、何もうまくいかないようなので、とても感謝しています。