实例 此文本隐藏在一个额外的小屏幕上

x
 
<!DOCTYPE html>
<html>
<head>
  <title>Bootstrap实例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
  <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
  <script src="https://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
  <h2>Example</h2>
  <p>Resize this page to see how the text below changes:</p>
  <h1 class="hidden-xs bg-danger">This text is hidden on an EXTRA SMALL screen.</h1>
  <h1 class="hidden-sm bg-info">This text is hidden on a SMALL screen.</h1>
  <h1 class="hidden-md bg-warning">This is text hidden on a MEDIUM screen.</h1>
  <h1 class="hidden-lg bg-success">This is text hidden on a LARGE screen.</h1>
</div>
    
</body>
</html>
                    

输出结果