CSS list sliding to prevent being covered by the bottom and adapt to the longer screen model processing

CSS list sliding to prevent being covered by the bottom and adapt to the longer screen model processing

1. When the mobile terminal processes the list sliding, WeChat has a built-in return page button at the bottom, which is often blocked. If the screen is longer, the bottom will be much shorter. The following method can solve this problem.

.container{
  position:relative;
  background:url(../img/chooseBg.jpg) no-repeat center center;
  background-size:cover;
  width:100%;
  height:100%;
  //.listConHeight{
  // height:9rem;
  // overflow:auto;
  //}
  .listConHeight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 1.3rem;
    box-sizing: border-box;
    ul {
      width:6.78rem;
      height: 100%;
      margin:0 auto;
      overflow:auto;
      -webkit-overflow-scrolling: touch;
    }
  }

Summarize

The above is what I introduced to you about how to prevent the CSS list sliding from being covered by the bottom and adapt to models with longer screens. 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!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

<<:  Baidu Input Method opens API, claims it can be ported and used at will

>>:  Solution to the problem that Centos8 cannot install docker

Recommend

Solve the problem that ElementUI custom CSS style does not take effect

For example, there is an input box <el-input r...

How to set up swap partition SWAP in Linux 7.7

The Swap partition of the Linux system, that is, ...

Life cycle and hook functions in Vue

Table of contents 1. What is the life cycle 2. Th...

Clean XHTML syntax

Writing XHTML demands a clean HTML syntax. Writing...

Detailed explanation of how to configure static IP in Centos8

After installing centos 8, the following error wi...

HTML (css style specification) must read

CSS style specifications 1. Class Selector 2. Tag...

MySQL table auto-increment id overflow fault review solution

Problem: The overflow of the auto-increment ID in...

25 fresh useful icon sets for download abroad

1. E-Commerce Icons 2. Icon Sweets 2 3. Mobile Ph...

Extract specific file paths in folders based on Linux commands

Recently, there is a need to automatically search...

Image scrolling effect made with CSS3

Achieve resultsImplementation Code html <base ...

Vue implements the right slide-out layer animation

This article example shares the specific code of ...