Loading inline content using FancyBox

前端 未结 3 662
终归单人心
终归单人心 2020-12-07 15:50

Well, I\'m simply writing this post to hopefully help others that might come across the same issue.

The examples on the vendor website are a little vague and I had a

3条回答
  •  -上瘾入骨i
    2020-12-07 16:19

    The way I figured this out was going through the example index.html/style.css that comes packaged with the Fancybox installation.

    If you view the code that is used for the demo website and basically copy/paste, you'll be fine.

    To get an inline Fancybox working, you will need to have this code present in your index.html file:

      
        
        
        
        
        
      
    
     
    
        Name of Link Here
        
    Write whatever text you want right here!!

    Remember to be precise about what folders your script files are placed in and where you are pointing to in the Head tag; they must correspond.

提交回复
热议问题