Materialize提供了一個(gè)特殊的類來(lái)表示各種類型的集合,其中集合表示相關(guān)信息項(xiàng)的組。
序號(hào) | 類名稱及說(shuō)明 |
---|---|
1 | page-footer 將div容器設(shè)置為頁(yè)腳。 |
2 | footer-copyright 將div容器設(shè)置為頁(yè)腳版權(quán)容器。 |
以下示例展示使用頁(yè)腳類來(lái)展示示例頁(yè)腳。
materialize_footer.html
<html> <head> <title>The Materialize Collections Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <script type="text/javascript" src="/attachments/tuploads/materialize/jquery-2.1.1.min.js"></script> <script src="/attachments/tuploads/materialize/materialize.min.js"></script> </head> <body class="container"> <footer class="page-footer"> <div class="row"> <div class="col s12 m6 l6"> <h5 class="white-text">Footer Content</h5> </div> <div class="col"> <ul> <li><a href="#" class="grey-text text-lighten-4 right">Help</a></li> <li><a href="#" class="grey-text text-lighten-4 right">Privacy and Terms</a></li> <li><a href="#" class="grey-text text-lighten-4 right">User Agreement</a></li> </ul> </div> </div> <div class="footer-copyright"> <div class="container"> © 2016 Copyright Information <a class="grey-text text-lighten-4 right" href="#!">Links</a> </div> </div> </footer> </body> </html>
驗(yàn)證結(jié)果,如下圖所示。
更多建議: