2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

fixes #10073: add width: 100%; for ie10 and below to size svg.img-responsive correctly

This commit is contained in:
Mark Otto
2014-06-18 17:34:09 -07:00
parent fdf174e498
commit 46e8a5817d
6 changed files with 7 additions and 4 deletions
+1
View File
@@ -8,6 +8,7 @@
// Keep images from scaling beyond the width of their parents.
.img-responsive(@display: block) {
display: @display;
width: 100% \9; // Force IE10 and below to size SVG images correctly
max-width: 100%; // Part 1: Set a maximum relative to the parent
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
}