position: fixed; the bottom-absorbing button and the bottom-absorbing button block the content solution

In development, bottom or top buttons are very common, and they are all realized by setting position: fixed and then controlling the distance of bottom

 The implementation style is as follows:

But sometimes, the suction button may block the content, so at this time, you can set the padding-bottom property on the outermost parent box, or set a parent box yourself, and then adjust the value of the padding-bottom property to a suitable value The location is OK

Guess you like

Origin blog.csdn.net/fsfsdgsdg/article/details/127197102