bootstrap: change modal backdrop opacity only for specific modals

后端 未结 6 1891
暗喜
暗喜 2021-02-05 06:28

I have a menu with multiple modals. When I open one over another it turns backgrount into black, which is ugly. I understand that I need change filter: alpha(opacity=80);<

6条回答
  •  梦谈多话
    2021-02-05 06:45

    ONLY CSS / HTML

    JSFiddle: http://jsfiddle.net/szoys6d7/

    HTML

    
    

    CSS

    .modal2.fade.in ~ .modal-backdrop.fade.in {
    background-color: #f00; }
    

提交回复
热议问题