Colorbox doesn't open at proper height when first opened

后端 未结 4 684
臣服心动
臣服心动 2021-02-13 18:12

So I\'m using the colorbox plugin for a contact form. I am just the default colorbox properties, so it should automatically adjust to the div it contains (right?).

Well

4条回答
  •  一向
    一向 (楼主)
    2021-02-13 18:33

    $("a.modalAutosize").each(function(){
       $(this).colorbox();  
    });
    

    You don't have to write an each() function here. You can turn scrolling off.

    Eg.

    $("a.modalAutosize").colorbox({scrolling: false});
    

提交回复
热议问题