源代碼
點擊運行
<!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> <h2>文本對齊</h2> <p> <code>.xlarge-only-text-left</code> 類設置寬度在 90.0625em 到120em 尺寸的屏幕左對齊。重置瀏覽器大小查看傚果。</p> <p class="text-right xlarge-only-text-left" style="color:red;">實例文本</p> <p><strong>注意:</strong>HTML 中文本默認是左對齊的。 所以我們這個實例添加了 .text-right 類設置右對齊來演示實例傚果。</p> </body> </html>
運行結果