Foundation 用于開(kāi)發(fā)響應(yīng)式的 HTML, CSS and JavaScript 框架。
Foundation 是一個(gè)易用、強(qiáng)大而且靈活的框架,用于構(gòu)建基于任何設(shè)備上的 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 按鈕 示例
<!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>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例