私はLynda.comのYouTubeのビデオの1つに従っていて、レスポンシブなデザインのウェブページを作成しています。一言で言えば、私は標準的なグローバルスタイル用と大きいサイズのスクリーン用の2つのCSSファイルを持っています。HTML5レスポンシブルウェブデザイン(CSS付き)
<!Doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale = 1.0"/>
<title> Lynda.com | Creating a Responsive Web Design</title>
<link rel="stylesheet" type="text/css" href="first.css" />
<link rel="stylesheet" type="text/css" href="firstLarge.css" />
<link rel="stylesheet" type="text/css" media="only screen and (min-width:50px) and (max-depth:500px)" href ="firstSmall.css" />
<link rel="stylesheet" type="text/css" media="only screen and (min-width:501px) and (max-depth:800px)" href ="firstMedium.css" />
<!--[if lt IE 9]>
<script src - src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
これは私のhtmlファイルの始まりです。だから私が懸念して混乱しているのは、2番目のリンクrelラインです。クロムブラウザを展開すると、 "firstLarge.css"には何も適用されません。あたかもCSSが存在しないかのようです。
私はこの作業をどうやって行うのかちょっと混乱しています。どんな種類の助けも高く評価されます。ありがとうございました。
ファイルの内容を見ることなく、何かを言うのはかなり不可能です。 – JJJ
... whats 'max-depth'? – AA2992
@AnkithAmtangeそれをキャッチしてくれてありがとう。それはあなたにもありがとう幅であるはずです! –