源代碼
點擊運行
<!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.staticfile.org/foundation/5.5.3/css/foundation.min.css"> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/foundation/5.5.3/js/foundation.min.js"></script> <script src="https://cdn.staticfile.org/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="/images/logo.png" target="_blank" class="th"> <img src="/images/logo.png" alt="Paris" width="400" height="300"> </a> </div> </body> </html>
運行結果