五、页脚footer
<!DOCTYPE html> <head> <meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1.0"> <title>页脚</title> <style> * { box-sizing: border-box; }/*宽度和高度会包括内边距和边框。将其应用于所有元素是安全且明智的*/ .footer{text-align: center;padding: 10px;background-color: #F1F1F1;} </style> </head> <body> <div class="footer">页脚</div> </body>