Responsive images in tables (bootstrap 3)

前端 未结 5 1508
失恋的感觉
失恋的感觉 2020-12-15 07:05

I\'m using the Bootstrap 3 Framework and have some troubles with the \"img-responsive\" class in Firefox. I have a 4 column-Table with 15/50/10/25% layout. In the first colu

5条回答
  •  失恋的感觉
    2020-12-15 07:41

    The answer from Bass

    .img-responsive {
       width:100%;
    }
    

    does work, but it also scales up other images.

    What I have done instead is create another class as

    .img-responsive-2 { 
       width: 100%; 
    }
    

    and put it together with the original .img-responsive so that I have the flexibility to use it only for images in tables.

    
    

提交回复
热议问题