Adding borders to span divs in Bootstrap messes up layout

后端 未结 5 1745
遇见更好的自我
遇见更好的自我 2021-02-07 13:58

I am starting with Twitter Bootstrap and have a question about how layout functions in it. Here is the HTML:



    
         


        
5条回答
  •  没有蜡笔的小新
    2021-02-07 14:29

    Another option would be to tweak the span widths with JQuery:

    $(".some-bordered-container [class*=span] ").each(function(index) {
        $(this).width($(this).width()-1);
    });
    

    It seems to work well for me. I don't miss the pixels.

提交回复
热议问题