H5響應(yīng)式開發(fā)之首頁內(nèi)容(三)
首頁底部
在H5中,新增<footer>標簽用來制作頁腳,不需要像html中新建一個div來進行編寫。我們下面就還是用這個標簽,來制作頁腳
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <footer id="footer"> <div class="container"> <p>自學路線 | 合作相關(guān) | 投訴建議</p> <p> 2016 PHP中文網(wǎng)企業(yè)網(wǎng)站.powered by Bootstrap.</p> </div> </footer> </body> </html>
然后對樣式進行控制。
#footer{ color: white; background-color: #000000; border-top: 1px solid #ccc; padding: 20px; text-align: center; }
這樣我們的底部欄也就完成了