bootstrap pagination and Page flipping

Source: Internet
Author: User

Bootstrap page in UL add pagination to show the following effect:

Bootstrap page in the UL Add pager class can display the following effect;

Combining paging and page flipping can show the following effects:

Therefore, it takes 3 block elements xian to display in the same column, the workaround:

Set float for the first and last UL for left and right respectively

The code is as follows:

1 <Divclass= "Col-sm-offset-4 col-sm-3">2     <ulID= "Previous"class= "Pager">3         <Li><ahref="#">&larr;Previous page</a><>4     </ul>5     <ulID= "pages"class= "pagination">6         <Li><ahref="#">1</a><Li>7         <Li><ahref="#">2</a><Li>8     <Li><ahref="#">3</a><Li>9     <Li><ahref="#">4</a><Li>Ten     <Li><ahref="#">5</a><Li> One     </ul> A     <ulID= "Next"class= "Pager"> -         <Li><ahref="#">Next page&rarr;</a><Li> -     </ul> the </Div>            

The CSS settings are as follows:

1 ul {2 Display:inline-block;3 }4 #previous {5 Float:left;6 }7 #next {8 Float:right;9 }Ten #pages { One padding-left:25px; A}

For common block-level elements, the following:

<address> <blockquote> <dd> <div> <dl> <fieldset> <form>

The new block-level elements in HTML5 are:

<article> <aside> <audio> <canvas> <figcaption> <figure> <footer> < header>

bootstrap pagination and Page flipping

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.