源代码:
提交运行 »
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://www.fmpq.com/jscss/bootstrap/foundation.min.css"> <script src="http://www.fmpq.com/jscss/bootstrap/jquery.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/foundation.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/modernizr.js"></script> </head> <body style="padding:20px"> <h3>均匀延展按钮组:</h3> <p>均匀延展三个按钮:</p> <ul class="button-group even-3"> <li><button type="button" class="button">Apple</button></li> <li><button type="button" class="button">Samsung</button></li> <li><button type="button" class="button">Sony</button></li> </ul> <p>均匀延展五个按钮:</p> <ul class="button-group even-5"> <li><button type="button" class="button">Apple</button></li> <li><button type="button" class="button">Samsung</button></li> <li><button type="button" class="button">Sony</button></li> <li><button type="button" class="button">HTC</button></li> <li><button type="button" class="button">Huawei</button></li> </ul> <p>均匀延展八个按钮:</p> <ul class="button-group even-8"> <li><button type="button" class="button">A</button></li> <li><button type="button" class="button">B</button></li> <li><button type="button" class="button">C</button></li> <li><button type="button" class="button">D</button></li> <li><button type="button" class="button">E</button></li> <li><button type="button" class="button">F</button></li> <li><button type="button" class="button">G</button></li> <li><button type="button" class="button">H</button></li> </ul> </body> </html>
测试结果: