简体   繁体   中英

How to over-ride img-width from bootstrap? Set css rule to null?

I'm using bootstrap and I have a very small custom over-ride style sheet that loads last and it seems to work great, However I found that Bootstrap has

img {img-width:100%;}

I found it is causing Chrome to really downsize some images, which show fine in FF so I tried using the inspector and if I eliminate the rule, all seems fine.. but I can't figure out how to do that in a sub css sheet, since

{img-width: ;} 

is not legal? and I tried

{img-width:100;} 

which seemed to make the inspector happy since it knew that it was junk but did not work in real -life, since it ignored the rule?? So how do you set a css property to null in a sub style sheet?

The answer!! img {img-width : none;} Thanks to an answer from Github on the bootstrap issues... Would appreciate Madth3 and Roman C correcting...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM