<head>
<Meta charset="UTF-8">
<Meta name="viewport" content="width=device-width,initial-scale=1.0">
<Meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="./mediaTest.css"
media="(max-width:640px)" > 注: 在link中加
media="(max-width:640px)" 是对整个mediaTest.css文件起作用
用法。。。
<title>框架起手势</title>
</head>
下面是 “./mediaTest.css” 这个文件:
@media only screen and (max-width:639px) {
body { background-color: red }
/* 清楚浮动 */
.left,.right {clear: both;}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。