Home >Web Front-end >HTML Tutorial >Looking for a display effect_html/css_WEB-ITnose

Looking for a display effect_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:11:051481browse

Similar to the upper and lower pages of product selection in Jingdong Mall, how to keep the page turning options always attached to the bottom of the product as the content increases or decreases


Reply to the discussion (Solution)

Set the style of the div or whatever you need position: fixed;
Position it as needed

In fact, all your data is read from the database The one you choose is how much is set to be displayed on each page. If not, the rest will be displayed, and then the page number will be output below!

Isn’t it enough to write the page layer directly under the products layer?

This should set the height of the displayed DIV to auto, so that the following paging will automatically be attached to it. No need to set anything. LZ can try it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn