Hollow Style

优质
小牛编辑
118浏览
2023-12-01

描述 (Description)

使用.hollow类为您的按钮提供空心样式外观。 要创建默认样式,请更改设置文件中的$button-fill变量。

例子 (Example)

以下示例演示如何在Foundation中使用hollow styles

<html>
   <head>
      <title>Button Hollow Style</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <button class = "hollow button" href = "#">Primary</button>
      <button class = "secondary hollow button" href = "#">Secondary</button>
      <button class = "success hollow button" href = "#">Success</button>
      <button class = "alert hollow button" href = "#">Alert</button>
      <button class = "warning hollow button" href = "#">Warning</button>
      <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>