案例: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
13
<body style="padding:20px;">
14
15
<div style="padding:20px;">
16
  <h2>模态框</h2>
17
  <p>模态框是一个显示在页面头部的弹窗。</p>
18
  <button type="button" class="button" data-reveal-id="myModal">点我打开模态框</button>
19
20
  <div id="myModal" class="reveal-modal" data-reveal>
21
    <h2>Heading in Modal.</h2>
22
    <p>Some text in the modal.</p>
23
    <p>Some text in the modal.</p>
24
    <a class="close-reveal-modal">&times;</a>
25
  </div>
26
</div>
27
28
<script>
29
$(document).ready(function() {
30
    $(document).foundation();
31
})
32
</script>
33
34
</body>
35
</html>
36