Coloring
优质
小牛编辑
134浏览
2023-12-01
描述 (Description)
按钮组中的每个按钮都可以单独着色,也可以使用同一个类对每个按钮进行着色。
例子 (Example)
以下示例演示如何在Foundation中为color button group 。
<html>
<head>
<title>Button Group Coloring</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 = "secondary button">Secondary</a>
<a class = "success button">Success</a>
<a class = "warning button">Warning</a>
<a class = "alert button">Alert</a>
</div>
<div class = "success button-group">
<a class = "button">Button</a>
<a class = "button">With</a>
<a class = "button">Success</a>
<a class = "button">Class</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>