基本介绍

1、利用媒体查询功能并使用这些工具类可以方便的针对不同设备展示或隐藏页面内容。

基本使用

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>Bootstrap 101 Template</title> <!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
.row div{
border: 1px solid #000;
}
</style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid">
<div class="row hidden-xs">
<div class="col-lg-3 col-sm-6">简介</div>
<div class="col-lg-3 col-sm-6">简介</div>
<div class="col-lg-3 col-sm-6">简介</div>
<div class="col-lg-3 col-sm-6">简介</div>
</div>
</div> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>

当屏幕小于768px就会隐藏列表

最新文章

  1. dbca建库sys用户被锁
  2. LINQ系列:LINQ to DataSet的DataTable操作
  3. php知识分享
  4. 正在使用广告标识符 (IDFA)
  5. Android logcat
  6. php 修改上传文件大小 (max_execution_time post_max_size)
  7. Axis2与Web项目整合
  8. Jquery 获得服务器控件值的方法小结(转)
  9. shell小程序
  10. div+css模式编写html静态网页例子_仿照网页制作
  11. 自定义UIViewController与xib文件关系深入分析
  12. C语言关键字register、extern、static、一些总结,及项目中使用的心得
  13. python字符串 列表 元组 字典相关操作函数总结
  14. xrange与range的区别
  15. linux下搭建SVN
  16. POJ 2250 Compromise【LCS】+输出路径
  17. 字母统计-map
  18. 转 - ubuntu 安装node.js 与 npm
  19. 利用Xilinx HLS实现LDPC译码器
  20. Mysql 中的伪列用法

热门文章

  1. [bzoj1572][Usaco2009 Open]工作安排Job_贪心_堆
  2. [bzoj 1025][SCOI2009]游戏(DP)
  3. Vue插槽的另外一些特性
  4. Unix stat
  5. RAC 设置archive log模式
  6. 运行系统命令而且将输出写到指定日志文件的shell脚本(2)
  7. Ubuntu下用hadoop2.4搭建集群(伪分布式)
  8. LeetCode 359. Logger Rate Limiter (记录速率限制器)$
  9. windows下安装MySQL-python遇到的问题
  10. java调用restful接口的方法