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
This article example shares the specific code of ...
CSS Viewport units have been around for the past ...
This is a large drop-down menu implemented purely...
The first time I used the essay, I felt quite awkw...
Open DREAMWEAVER and create a new HTML. . Propert...
Preface Everyone should be familiar with the watc...
Table of contents 1. Software Package 2. Install ...
DOCTYPE Doctype is used to tell the browser which...
Table of contents 1. Brief Overview 2. Detailed e...
HTML <dl> Tag #Definition and Usage The <...
Now most of the Docker images are based on Debian...
By default, MySQL in Linux distinguishes between ...
Learn a jQuery plugin every day - floating menu, ...
Today we will make a simple case, using js and jq...
apt install CMake sudo apt install cmake This met...