The specific method is as follows: Copy code The code is as follows:.wap_bottom { height: 60px; width: 100%; position: fixed; z-index: 2; bottom: 0; left: 0; opacity: 0.7; } HTML code Copy code The code is as follows: <div class="wap_bottom"> <a href="https://www.jb51.net" target="_blank"></a></div> Note: Generally speaking, when people write a float, they use position: fixed; in CSS to control it. However, this method only works on the computer side, but not on the mobile side. The effect is that when you use a mobile browser to open the web page, it is displayed at the bottom, but when you scroll down, the float does not follow. At this time, you need to add the following code between the head to solve the bug that the mobile browser does not support position: fixed. Copy code The code is as follows: <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> |
<<: JavaScript implements AI tic-tac-toe game through the maximum and minimum algorithm
>>: Linux configuration without password login stand-alone and full distribution detailed tutorial
Table of contents Preface Installation and Usage ...
Table of contents Introduction Description Naming...
I recently upgraded MySQL to 5.7, and WordPress r...
Preface This article will focus on the use of Typ...
Table of contents 1. React.FC<> 2. class xx...
I encountered such a problem during development A...
Install fastdfs on Docker Mount directory -v /e/f...
Table partitioning is different from database par...
First look at the effect: When the mouse moves ov...
Table of contents need: Ideas: lesson: Share the ...
Docker is a management tool that uses processes a...
Table of contents 1. Install Docker 2. Write code...
There are many special symbols used in mathematic...
Docker Compose can realize the orchestration of D...
I found an example when I was looking for a way t...