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

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

I tried the following:

   
30条回答
  •  一生所求
    2020-11-27 09:20

    I used this way, and it's work perfect for me

    $("#my-modal")
    .modal("toggle")
    .css({'width': '80%', 'margin-left':'auto', 'margin-right':'auto', 'left':'10%'});
    

提交回复
热议问题