m0_67745779 2022-05-11 13:35 采纳率: 70%
浏览 27
已结题

请问我这个当页面达到规定值时,为啥不能正常显示

<html>
<head>
<meta name="viewport" content="width=device-width"charset="utf-8">
<title>无标题文档</title>
<style>
html,body{
    width:100%;
    height:100%;
}
*{
    margin:0px;
    padding:0px;
}
body{
    margin:0px;
    padding:0px;
}
.one{
    position:fixed;
    left:0px;
    right:0px;
    background-color:#003;
    width:190px;
    height:100%;
}
.two{
    float:left;
    width:100%;
    margin-top:15px;
    height:100%;
}
.four{
    margin-left:200px;
    margin-right:310px;
    height:100%;
    background-color:#F03;
}
.three{
    width:300px;
    margin-left:-300px;
    height:100%;
    background-color:#0F6;
    float:left;
    margin-top:15px;
}
@media screen and(max-width:980px)
{
    .three{
        display:none;
    }
    .four{
        margin-right:0px;
    }
}
@media only screen and(max-width:764px)    
{
    .one{
        display:none;
    }
    .four{
        margin-left:0px;
    }
}
</style>
</head>

<body>
<div class="one"></div>
<div class="two">
<div class="four"></div>
</div>
<div class="three"></div>
</body>
</html>

  • 写回答

2条回答 默认 最新

  • 千梦 2022-05-11 13:55
    关注

    因为and后面需要一个空格

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 6月23日
  • 已采纳回答 6月15日
  • 创建了问题 5月11日

悬赏问题

  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题