Bootstrap模態窗model 動態調整高度。

很簡單,就改一下里面的body 和content高度就好了。javascript

var baseContentHeight = 447;
    var baseBodyHeight = 304;//相差143
    $("#taskDialog").find(".modal-content").height(baseContentHeight+50);  //默認 447
    $("#taskDialog").find(".modal-body").height(baseBodyHeight+50);    //默認 304
    $("#taskDialog").modal("show");
相關文章
相關標籤/搜索