- Foundation 通用
- Foundation - 全域性樣式
- Foundation - Sass
- Foundation - JavaScript
- Foundation - JavaScript 實用工具
- Foundation - 媒體查詢
- Foundation - 網格
- Foundation - 彈性網格
- Foundation - 表單
- Foundation - 可見性類
- Foundation - 基礎文字
- Foundation - 文字輔助工具
- Foundation - 基本控制元件
- Foundation - 導航
- Foundation - 容器
- Foundation - 媒體
- Foundation - 外掛
- Foundation SASS
- Foundation - Sass 函式
- Foundation - Sass 混入
- Foundation 庫
- Foundation - 動效 UI
- Foundation 實用資源
- Foundation - 快速指南
- Foundation - 實用資源
- Foundation - 討論
Foundation - 按鈕組大小調整
描述
可透過 .tiny、small 和 large 等標準按鈕調整按鈕組大小。
示例
以下示例演示如何在 Foundation 中調整按鈕組大小。
<html>
<head>
<title>Button Group Sizing</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">
</head>
<body>
<div class = "small button-group">
<a class = "button">Small Button</a>
<a class = "button">Small Button</a>
<a class = "button">Small Button</a>
</div>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
<script>
$(document).ready(function() {
$(document).foundation();
})
</script>
</body>
</html>
輸出
讓我們執行以下步驟,瞭解以上給定的程式碼如何工作 −
儲存上述給定的 html 程式碼 button_group_sizing.html 檔案。
在瀏覽器中開啟此 HTML 檔案,輸出如下所示。
foundation_basic_controls.htm
廣告