Foundation is used to develop responsive HTML, CSS and JavaScript frameworks.

Foundation is an easy-to-use, powerful and flexible framework for building web applications on any device.

Foundation is a popular mobile-first framework.

Foundation sidebar syntax

Instructions: Foundation uses <ul class="side-nav"> to create a sidebar

Foundation sidebar example

<!DOCTYPE html>
<html>
<head>
  <title>Foundation 实例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css">
  <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/foundation.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>

<div class="row">
  <div class="medium-4 columns" style="background-color:#f1f1f1;">
    <ul class="side-nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="#">Learn HTML</a></li>
      <li><a href="#">Learn JavaScript</a></li>
      <li><a href="#">Learn CSS</a></li>
      <li><a href="#">Learn Foundation</a></li>    
      <li><a href="#">Learn HTML</a></li>
      <li><a href="#">Learn JavaScript</a></li>
      <li><a href="#">Learn CSS</a></li>
      <li><a href="#">Learn Foundation</a></li>      
    </ul>
  </div>
  <div class="medium-8 columns">
    <h1>侧栏导航</h1>
    <p>该实例将侧栏导航房子网格设计中,背景为灰色。</p>
    <p><strong>注意:</strong> 在小屏幕尺寸上,侧栏导航是垂直的,且宽度是延展到整个屏幕(100% width)。</p>
    <p>重置浏览器查看效果。</p>
    <p>行为动作可以通过 javascript 或媒体查询来修改它。</p>
  </div>
</div>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance