首页 > 其他 > 详细

@media only screen and (max-width:640px)中的问题,响应式布局

时间:2019-02-10 16:58:50      阅读:877      评论:0      收藏:0      [点我收藏+]
<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;}
  }

@media only screen and (max-width:640px)中的问题,响应式布局

原文:https://www.cnblogs.com/andy-lehhaxm/p/10359390.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!