案例:Foundation案例     状态:可编辑再运行    进入横版
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
  <title>Foundation 实例</title>
5
  <meta charset="utf-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
  <link rel="stylesheet" href="/css/foundation5.5.3/foundation.min.css">
8
  <script src="/js/bootstrap/jquery.min.js"></script>
9
  <script src="/js/foundation5.5.3/foundation.min.js"></script>
10
  <script src="/js/foundation5.5.3/modernizr.js"></script>
11
</head>
12
<body>
13
14
<h2>根据屏幕尺寸隐藏元素</h2>
15
<p><strong>注意:</strong> 重置浏览器窗口查看效果。</p>
16
<p class="hide-for-small-only">你不在小型设备上。</p>
17
<p class="hide-for-medium-up">你不在中型、大型、更大型、超大型的设备上。</p>
18
<p class="hide-for-medium-only">你不在中型设备上。</p>
19
<p class="hide-for-large-up">你不在大型、更大型、超大型的设备上。</p>
20
<p class="hide-for-large-only">你不在大型设备上。</p>
21
<p class="hide-for-xlarge-up">你不在更大型、超大型的设备上。</p>
22
<p class="hide-for-xlarge-only">你不在更大型设备上。</p>
23
<p class="hide-for-xxlarge-up">你不在超大型设备上。</p>
24

 运行结果 
 北美留学生论坛