1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 22:39:11 +02:00

fixes #4935: properly comment responsive image techniques and add CSS tests to support

This commit is contained in:
Mark Otto
2012-09-03 17:35:35 -07:00
parent 8cda830eaf
commit acf2a64016
2 changed files with 42 additions and 2 deletions

View File

@@ -77,9 +77,11 @@ sub {
// -------------------------
img {
max-width: 100%; // Make images inherently responsive
/* Responsive images (ensure images don't scale beyond their parents) */
max-width: 100%; /* Part 1: Set a maxium relative to the parent */
width: auto\9; /* IE7-8 need help adjusting responsive images */
height: auto; // Make images inherently responsive
height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;