问题
I created this question but there is no answer. so i recreated.
I use modal bootstrap. When no scroll bar appears, everything is normal. But when I add more data, modal auto add style="display: block; padding-left: 15px;"
:
<div class="modal fade in" id="tags_modal" role="dialog" style="display: block; padding-left: 15px;">
I try change it but I can't. My code: https://jsbin.com/fusinoc/1/edit?html,css,output
My layout: my layout
回答1:
Instead of adding styles inline, add below code in your css.
#myModal2 {
padding-left: 0 !important;
}
working bin
Hope this helps :)
来源:https://stackoverflow.com/questions/47259203/cant-change-css-modal-bootstrap-modal-fade-in-bootstrap-auto-add-padding-left