Home >Web Front-end >HTML Tutorial >Looking for a display effect_html/css_WEB-ITnose
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
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.