Place Title Inside using Fancybox 2

前端 未结 1 708
抹茶落季
抹茶落季 2021-01-25 02:54

I\'am totally clueless, but have managed to get Fancybox v2.1.0 working by using the many great answers found here. Now, I would like to change the title position to the \"insid

相关标签:
1条回答
  • 2021-01-25 03:21

    You don't need to mess with original js file, you just need to load fancybox in your html document (see what to include here)

    Then, within the <head> section of your html document, include this script (after you loaded jQuery and fancybox js files as in the instructions above)

    <script type="text/javascript">
     $(document).ready(function(){
      $(".fancybox").fancybox({
        openEffect  : 'elastic',
        closeEffect : 'elastic',
        helpers     : {
            title: {
                type: 'inside'
            }
        }
      });​
     });
    </script>
    
    0 讨论(0)
提交回复
热议问题