I am trying to run this code according to which the order of the boxes should change for screen size larger than 700px. But it does not happen as such, and there is no visible change. What is it that I am doing wrong?

我正在尝试运行这段代码,根据这个代码,框的顺序应该更改为大于700px的屏幕大小。但这并没有发生,而且也没有明显的变化。我做错了什么?

http://jsbin.com/xabegeziro/edit?html,css,output

http://jsbin.com/xabegeziro/edit?html,css,输出

.container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.header {
  background-color: green;
  min-height: 100px;
  width: 100%
}
.blue-box {
  background-color: blue;
  min-height: 100px;
  width: 100%
}
.red-box {
  background-color: red;
  min-height: 100px;
  width: 100%
}
.dark-green-box {
  background-color: green;
  min-height: 100px;
  width: 250px;
}
.purple-box {
  background-color: purple;
  min-height: 100px;
  width: 250px;
}
.orange-box {
  background-color: orange;
  min-height: 100px;
  width: 100%
}
.light-blue-box {
  background-color: #00d0ff;
  min-height: 100px;
  width: 100%
}
@media sceen and (min-width: 700px) {
  .header {
    order: 1;
  }
  .orange-box {
    order: 2;
  }
  .purple-box {
    order: 3;
  }
  .red-box {
    order: 4;
  }
  .dark-green-box {
    order: 5;
  }
  .light-blue-box {
    order: 6;
  }
  .blue-box {
    order: 7;
  }
}
<div class="container">
  <div class="header"></div>
  <div class="blue-box"></div>
  <div class="red-box"></div>
  <div class="orange-box"></div>
  <div class="purple-box"></div>
  <div class="dark-green-box"></div>
  <div class="light-blue-box"></div>
</div>

更多相关文章

  1. 【置顶】 不显示删除回复显示所有回复显示星级回复显示得分回复
  2. 在Emacs中将语法突出显示的代码转换为HTML
  3. HTML5用户身份认证源代码:注册、登录、会话保持的解决方案
  4. 将PHP代码添加到.html文件
  5. 如何让你的前端代码更像HTML5(用语义元素构造html5)
  6. 如何在CSS中单独定位此HTML代码?
  7. QQ、MSN、淘包旺旺、Skype常设对话的html链接代码
  8. 10段实用的HTML5代码
  9. 用JavaScript实现两种功能:1、切换全选/全不选文字;2、根据选中个

随机推荐

  1. C# 多线程--线程池的详细介绍
  2. CTS(common type system)的实例介绍及应用
  3. 介绍一个力软敏捷开发框架
  4. 什么是委托?总结.net中重要的特性委托
  5. szq.orm.sql更新说明
  6. .net 1.x中的委托实例详解
  7. szq.orm.sql框架系列
  8. asp.net MVC 网站图片怎么实现防盗链?
  9. 怎么在Webforms 下搭建WebAPI?
  10. 总结委托和事件的联系和区别