响应式布局的实用类

responsive-layout-utility-classes-finish.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>响应式布局的实用类</title>
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<!--[if lt IE 9]>
       <script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>

<body>
<div class="container">
  <h1 class="page-header">响应式布局的实用类<small> 使用Bootstrap网格系统布局网页</small></h1>
  <p>.visible-phone:在智能手机设备上显示这个元素,在其它设备上隐藏这个元素</p>
  <p>.visible-tablet:在平板电脑上显示这个元素,在其它设备上隐藏这个元素</p>
  <p>.visible-desktop:在桌面电脑上显示这个元素,在其它设备上隐藏这个元素</p>
  <div class="row">
    <div class="page-header clearfix">
      <div class="span4"><img src="../images/phone.png" alt="智能手机"></div>
      <div class="span4 hidden-phone"><img src="../images/tablet.png" alt="平板电脑"></div>
      <div class="span4 visible-desktop"><img src="../images/desktop.png" alt="桌面电脑"></div>
    </div>
  </div>
</div>
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script> 
<script src="../bootstrap/js/bootstrap.js"></script>
</body>
</html>

猜你喜欢

转载自beckham-xiao.iteye.com/blog/2396325