当前位置:首页>开发>正文

bootstrap模态框怎么通过css修改大小 bootstrap 缩略图能调成大小一样么

2023-05-18 06:35:00 互联网 未知 开发

 bootstrap模态框怎么通过css修改大小 bootstrap 缩略图能调成大小一样么

bootstrap模态框怎么通过css修改大小

var modalInstance = $modal.open({
templateUrl: htmls[$scope.chooseIndex], //指向上面创建的视图
controller: ctrls[$scope.chooseIndex], // 初始化模态范围
size: lg, //大小配置,貌似有modal-lg、modal-md和modal-sm三种,默认是modal-md的
resolve: {
item: function() {
return
},
title: function() {
return $scope.titles[$scope.chooseIndex]
},
opIndex: function() {
return 2
}
}
})

bootstrap 缩略图能调成大小一样么

两种方式 1、自动调整 $(#ajaxPage).modal(show).css({ width: auto, margin-left: function () { return -($(this).width() / 2) } }) 2、增加style,设置宽度

最新文章