Twitter Bootstrap - Position issue with row-fluid

后端 未结 6 2060
借酒劲吻你
借酒劲吻你 2021-02-04 14:56

I\'m currently building a website using Twitter bootstrap (which is amazing!). I had the layout using:

6条回答
  •  Happy的楠姐
    2021-02-04 15:31

    I just did this with jQuery instead:

    $(document).ready(function(){
        function doFluidFirstSpan() {
            var top = $('.thumbnails > li:first-child').position().top;
            $('.thumbnails > li').each(function(){
                if($(this).position().top > top) {
                    $(this).addClass("alpha");
                    top = $(this).position().top;   
                }
            }); 
        }
    
        doFluidFirstSpan();
    }
    

    and the css:

    .alpha { margin-left: 0 !important; }
    

提交回复
热议问题