how to stop image responsive in twitter-bootstrap?

后端 未结 5 1768
梦谈多话
梦谈多话 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条回答
  •  轮回少年
    2021-02-14 11:24

    Even simpler, you should be able to just add a generic class to the image so you can use it on multiple image sizes...

    /* html */
    An image
    
    /* css * /
    img.fixed-size { height: auto; width: auto; }
    

    I haven't tried it in IE but it works on Safari, FF and Chrome.

提交回复
热议问题