【问题标题】:Colorbox - a jQuery lightbox - Width and heightColorbox - 一个 jQuery 灯箱 - 宽度和高度
【发布时间】:2014-12-17 21:57:38
【问题描述】:

我正在使用“内联”方法。由于内容量大,我想降低灯箱的高度并增加灯箱的宽度。如何在代码中手动设置宽度/高度而不是自动调整大小?

【问题讨论】:

    标签: jquery colorbox


    【解决方案1】:

    您可以使用插件的属性:
    宽度:设置固定的总宽度。这包括边框和按钮。示例:“100%”、“500px”或 500
    高度:设置固定的总高度。这包括边框和按钮。示例:“100%”、“500px”或 500

    var $form = $("#myForm");
    $("#inline").colorbox({
       inline:true, 
       href:$form,
       width:"500px",
       height: "500px"
    });
    

    【讨论】:

      猜你喜欢
      • 2012-02-22
      • 2012-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-10
      • 2013-03-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多