FancyBox most basic steps to use

Source: Internet
Author: User

Preliminary use
The first step: referencing JS and styles

Step two: Set the element to trigger the display (a tag, link href to the div's ID)
<div><a href= "#adddivtest" id= "Addbtndiv" > Test </a></div>

Step three: Set the content block to be displayed in the panel after the trigger (General Div, must have 2 layers of packaging)
<div style= "Display:none;" >
<div id= "Adddivtest" >
<div class= "title" > Task type:</div>
<div class= "title" > Task type:</div>
<div class= "title" > Task type:</div>
</div>
</div>

Fourth step: JS load load/* Popup box js*/(the ID used at this time is the ID of a tag instead of the div ID)
function () {
/* Popup Box js*/
$ ("#addbtndiv"). FancyBox ({
' Autodimensions ': false,
' Centeronscroll ': true,
' Scrolling ': false,
' Width ': 480,
' Height ': 380
});

}


------------The simplest panel can now be triggered and displayed, and then the data is loaded in the panel---------------

FancyBox most basic steps to use

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.