Bootstrap JavaScript Plugin---popup box (modal frame) Modal

Source: Internet
Author: User

Brief introduction:

A pop-up box is a frequently used component that is commonly used for pop-up prompts, confirmation messages, and form content.

Complete structural analysis (can have no head and bottom):

code example:

<!--the head of the popup box -    <Divclass= "Modal Fade">          <Divclass= "Modal-dialog">              <Divclass= "Modal-content">                  <Divclass= "Modal-header">                      <Buttontype= "button"class= "Close"Data-dismiss= "Modal">                          <spanAria-hidden= "true">&times;</span><spanclass= "Sr-only">Close</span>                      </Button>                      <h4class= "Modal-title">Modal Title</h4>                  </Div><!--pop-up box contents -                <Divclass= "Modal-body">                      ...                  </Div>  <!--the bottom of the popup box -                <Divclass= "Modal-footer"><!--set the data-dismiss= "modal" property to close the pop-up box -                    <Buttontype= "button"class= "Btn Btn-default"Data-dismiss= "Modal">Close</Button>                      <Buttontype= "button"class= "Btn btn-primary">Save changes</Button>                  </Div>              </Div>          </Div>      </Div> 

※ When you need to set a popup for an element, set data-toggle= "modal"for that element (Activate modal box properties),data-target= "#about" (Used to point to the modal box being controlled) Here is also not a special understanding, if you have the opinion of the small partners to advise.

Bootstrap JavaScript Plugin---popup box (modal frame) Modal

Related Article

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.