【发布时间】:2017-09-12 11:06:02
【问题描述】:
我正在努力在一周或更长时间内用 php 创建我的网站,我的所有媒体查询都按定义正常工作...... @media 屏幕和(最大宽度:768px) @media 屏幕和(最大宽度:600 像素) ...但突然 chrome 停止正常工作并在 960px 的宽度和 750px 的宽度上显示 768px 的内容 而不是 600px。 我一次又一次地刷新了 chrome 甚至缓存,但没有结果。但 EADGE 工作正常。 在开发网站或其他过程中经常刷新chrome是否有任何问题? 请在这种奇怪的情况下帮助我。
@media screen and (max-width: 900px) {
.side-btn{
font-size: 100%;
margin: 4px 5px;
padding: 3% 3%;
}
}
@media screen and (max-width: 768px){
.nav1 ul li{
clear: both;
width: 100%;
border-right: none;
border-bottom: 1px solid grey;
}
.nav2 { display: block; }
.navul{ display: none; }
}
@media screen and (max-width: 600px) {
.startmenu,.itemhead{ font-size: 100%;}
.side-btn{
font-size: 80%;
margin: 4px 3%;
padding: 3% 3%;
}
.itbody{ height: 340px; }
.custom{
margin-top: 3px;
width: 100%;
text-align: center;
margin-left: auto;
margin-right: auto;
}
.inqbasket{
width: 100%;
text-align: center;
margin-left: auto;
margin-right: auto;
margin-top: 3px;
}
.ifcol1{ width: 100%; }
.ifcol2{ width: 100%; }
}
【问题讨论】:
-
请给我们看一些代码,以便我们找出问题所在。
-
欢迎来到 Stack Overflow!请查看tour,环顾四周,并通读help center,尤其是How do I ask a good question? 请使用runnable minimal reproducible example 更新您的问题,使用Stack Snippets (
[<>]工具栏按钮)。我们无法帮助您处理我们看不到的代码/标记/样式。 -
让我这样说:如果你不提供一些代码,你只是在浪费你的时间;你永远不会得到答案。
-
是的,我已经用编码更新了我的问题...
标签: javascript php html css google-chrome