Increase modal size for Twitter Bootstrap

前端 未结 17 1693
抹茶落季
抹茶落季 2020-12-12 11:44

I am trying to change the size of the modal form or rather - have it respond to the content I render there. I am using it to render a form and would prefer to deal with scro

17条回答
  •  春和景丽
    2020-12-12 12:07

    Tried a few of the above as need to set specific sizes of width and height (to display an image in a modal)and as none above helped me I decided to override the styles and have added the following to the main < div > that has class="modal hide fade in" in it : i.e. added a width to the style tag for the background of the modal.

    style="display: none; width:645px;"
    

    and then added the following 'style' tags to the modal-body:

    works like a charm now, I'm displaying an image and now it fits perfect.

提交回复
热议问题