How can I change the default width of a Twitter Bootstrap modal box?

后端 未结 30 2638
醉酒成梦
醉酒成梦 2020-11-27 08:38

I tried the following:

   
30条回答
  •  抹茶落季
    2020-11-27 09:34

    With Bootstrap 3, all that is required is a percentage value given to the modal-dialog via CSS

    CSS

    #alertModal .modal-dialog{
         width: 20%;
    }
    

提交回复
热议问题