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
Official website: http://code.google.com/p/zen-cod...
Some people use these three tags in a perverted wa...
The specific code for sending emoticons in the vu...
This article shares the specific code of Vue to i...
Table of contents Preface What is a virtual list?...
Online shopping mall database-user information da...
The ".zip" format is used to compress f...
A singly linked list can only be traversed from t...
For Linux system administrators, it is crucial to...
1|0 Background Due to project requirements, each ...
Environment configuration 1: Install MySQL and ad...
Table of contents Animation Preview Other UI Libr...
The requirements are as follows Export the table ...
When discussing Web standards, one thing that alwa...
When you see a class, what information do you wan...