Paging code for this effect. This effect .. ------ Solution -------------------- the image is suspended! Seeking truth! ------ Solution ------------------ previous page max (1, $ page-1); Next page min ($ max_page, $ page + 1); Middle for ($ imax (1, $ page-5), $ nmin ($ the paging code for this effect.
This effect ..
------ Solution --------------------
The picture is down! Seeking truth!
------ Solution --------------------
Front page = max (1, $ page-1 );
Back page = min ($ max_page, $ page + 1 );
Intermediate
For ($ I = max (1, $ page-5), $ n = min ($ max_page, $ page + 5); $ I <= $ n; $ I ++)
------ Solution --------------------
Is it css? Isn't it similar to others?
------ Solution --------------------
It's also related to the database you are using. if it's just paging, it's okay. like there are pages in your database, it's hard to estimate the algorithm.
------ Solution --------------------
First write it out with css and then set it to php.
------ Solution --------------------
The key to implementing this paging method is that CSS styles cannot achieve results, and technologies have been implemented.
------ Solution --------------------
Yes. Let's take a look at jquery, which has powerful functions.