小编use*_*343的帖子

媒体查询在 Chrome 中不起作用

您好,我正在为网站实施响应式设计。虽然该设计在 Firefox 中运行良好,但在 PC 和移动设备上的 Chrome 中却不起作用。样式表styles-RWD.css是这个

    /*CSS FOR MOBILE DEVICES*/

@media screen and (min-width: 0px) and (max-width: 480px) {

 #sidebar {
  display : none;
 }

 footer {
  display : none;
 }
#bann_cb {
  display : none;
 }

body {
width:auto;
background-color:white;
font-family: sans-serif;
color:orange;
margin:0px 2px 2px 2px;
padding:0;
}
#header {
display : none;
}

#content {
width:50%;
padding:0px 2px 2px 2px;
}
#box_bharat {
display:none;
}

#form {
width:auto;
padding:none;

}
#menu-bar {
width:auto;
} …
Run Code Online (Sandbox Code Playgroud)

css firefox google-chrome responsive-design

1
推荐指数
1
解决办法
2642
查看次数

标签 统计

css ×1

firefox ×1

google-chrome ×1

responsive-design ×1