Open Colorbox on page load

前端 未结 1 859
北恋
北恋 2021-02-08 11:20

I have been trying to make the colorbox work on page load, but I can see only the loading with a plain background. I used this code

$.fn.colorbox({id:\'\', title:\

相关标签:
1条回答
  • 2021-02-08 11:47

    EDITED:

    <script type="text/javascript"> 
            $(document).ready(function(){
              $.colorbox({width:"30%", inline:true, href:"#subscribe"});
            }); 
    </script>  
    
    0 讨论(0)
提交回复
热议问题