Browse Source

height :auto, for displaying images without distortion.

jonndoe 5 năm trước cách đây
mục cha
commit
20fdd22226
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      bakerydemo/static/css/main.css

+ 5 - 0
bakerydemo/static/css/main.css

@@ -161,6 +161,11 @@ img {
   display: block;
   width: 100%;
 }
+figure img {
+  display: block;
+  width: 100%;
+  height: auto;
+}
 
 /* Generic detail page styles */
 .intro {