how to stop image responsive in twitter-bootstrap?

后端 未结 5 1635
梦谈多话
梦谈多话 2021-02-14 10:37

I\'m using twitter bootstrap to making responsive layout.It works like awesome.

It makes images too responsive. I need some images only need to be fixed width and height

5条回答
  •  梦毁少年i
    2021-02-14 11:20

    Create a new class and set the min height and min-width equal to the width and height of the image that you don't want to shrink, and add that class to those images.

    eg.

    /* css */
    img.no-resize {
      min-height: 40px;
      min-width: 50px;
    }
    
    /* html */
    
    

提交回复
热议问题