Basics
优质
小牛编辑
123浏览
2023-12-01
描述 (Description)
可以使用.button-group将任意数量的按钮放在容器内。 组中的每个按钮都以小间隙分隔。
例子 (Example)
以下示例演示了在Foundation中使用basic button group 。
<html>
<head>
<title>Button Group Basics</title>
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
</head>
<body>
<div class = "button-group">
<a class = "button">First button</a>
<a class = "button">Second button</a>
<a class = "button">Third 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>