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 images syntax

Description: Foundation provides responsive images and can create thumbnails and image pop-ups

foundation images 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 style="padding:20px">
  <h2>缩略图</h2>
  <p>在 <code><a></code> 标签中添加 <code>.th</code> 类将图片设置为缩略图。 鼠标移动到上面会显示一个浅蓝色外框:</p>
  <p><strong>注意:</strong>  Foundation 中图片默认是响应式的。重置窗口大小可以查看效果。</p>       
  <a href="http://img.php.cn/upload/article/000/000/003/5a9675cba0704196.jpg" target="_blank" class="th">
    <img src="http://img.php.cn/upload/article/000/000/003/5a9675cba0704196.jpg" alt="Paris" width="400" height="300">
  </a>
</div>

</body>
</html>

Run instance »

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