Sizing
优质
小牛编辑
121浏览
2023-12-01
描述 (Description)
按钮的大小和形状可以通过使用其他类来更改,例如tiny , small , large , expanded和small expanded 。
例子 (Example)
以下示例演示如何更改Foundation中size of the buttons的size of the buttons 。
<html>
<head>
<title>Button Sizing</title>
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
</head>
<body>
<a class = "tiny button" href = "#">Tiny button</a>
<a class = "small button" href = "#">Small button</a>
<a class = "button" href = "#">Button</a>
<a class = "large button" href = "#">Large button</a>
<a class = "expanded button" href = "#">Expanded button</a>
<a class = "small expanded button" href = "#">Small expanded button</a>
<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>