我正在关注Lynda.com YouTube上的其中一个视频以制作响应式设计网页。总之,我有2个CSS文件,一个用于标准全局风格,另一个用于较大尺寸的屏幕。HTML5 HTML5响应式网页设计
<!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文件的开始。所以我关心和困惑的部分是第二个链接rel行。当我扩展我的Chrome浏览器时,“firstLarge.css”中没有任何内容适用。就好像CSS甚至不存在。
我只是有点困惑,如何得到这个工作。任何类型的帮助将不胜感激。谢谢。
没有看到这些文件包含什么,几乎不可能说什么。 – JJJ
...什么是最大深度? – AA2992
@AnkithAmtange哎呀谢谢你的发现。它应该是宽度以及谢谢你! –