Foundation 用於開(kāi)發(fā)響應(yīng)式的 HTML, CSS and JavaScript 框架。

Foundation 是一個(gè)易於使用、強(qiáng)大且靈活的框架,用於建立基於任何裝置上的 Web 應(yīng)用。

Foundation 是一個(gè)以行動(dòng)優(yōu)先的流行框架。

Foundation 按鈕 語(yǔ)法

說(shuō)明:Foundation 提供了 6 種按鈕樣式。?.button?類別創(chuàng)造了一個(gè)藍(lán)色的按鈕並附有內(nèi)邊距。不同顏色按鈕類別為:?.secondary,?.success,?.info,?.warning?或?.alert

Foundation 按鈕 範(fàn)例

<!DOCTYPE html>
<html>
<head>
  <title>Foundation 實(shí)例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css">
  <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/foundation.min.js"></script>
  <script src="https://cdn.bootcss.com/foundation/5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>

<div style="padding:20px;">
  <h2>按鈕樣式</h2>
  <button type="button" class="button">Default</button>
  <button type="button" class="button secondary">Secondary</button>
  <button type="button" class="button success">Success</button>
  <button type="button" class="button info">Info</button>
  <button type="button" class="button warning">Warning</button>
  <button type="button" class="button alert">Alert</button>
</div>

</body>
</html>

執(zhí)行實(shí)例 ?

點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例