Preface Fix the footer area at the bottom. No matter how tall or wide the page is, it will always stay at the bottom, just like the mobile menu. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>document</title> <!-- css --> <style> #demo{ position: fixed; left: 0px; bottom: 0px; width: 100%; height: 50px; background-color: #eee; z-index: 9999; } </style> </head> <body> <footer id="demo">I am footer</footer> </body> </html> Summarize The above is the CSS3 that I introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Detailed explanation of this pointing in JS arrow function
>>: Building a Redis cluster on Docker
introduction Let's start with our content. I ...
The following code introduces the installation me...
Preface I believe everyone has used the top comma...
This article example shares the specific code of ...
Table of contents topic analyze Objects of use So...
Source of the problem As we all know, all network...
Table of contents 1. Component Introduction 2. Co...
This article shares the specific code of JavaScri...
1. Back button Use history.back() to create a bro...
Abstract: This article will demonstrate how to se...
Preface When it comes to database transactions, a...
Related articles: 9 practical tips for creating we...
1. Prepare the Docker environment 2. Search for f...
Introduction Part 1: Written at the beginning One...
Table of contents 1. Integrate Ant Design Vue 2. ...