From 3eaa64234ffefc15dd07a1be10c3e71f2281da23 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 29 Mar 2017 18:03:26 +0800 Subject: Change Docs image sizes and add object-fit support --- docs/elements.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'docs/elements.html') diff --git a/docs/elements.html b/docs/elements.html index 88d64c8..7d42ead 100644 --- a/docs/elements.html +++ b/docs/elements.html @@ -1253,7 +1253,27 @@ +
+

Add the img-fit-contain or img-fit-cover class to <img> or <video> elements. The media will crop itself to fit inside the element (and you don't need another container). This feature can replace the background image trick. Microsoft Edge support is in development.

+
+
+
+
+ macOS Yosemite Wallpaper +
img-fit-contain
+
+
+
+
+ macOS Yosemite Wallpaper +
img-fit-cover
+
+
+
+
<img src="img/osx-el-capitan.jpg" class="img-responsive ..." alt="..." />
+<img src="img/osx-el-capitan.jpg" class="img-fit-contain ..." alt="..." />
+<img src="img/osx-el-capitan.jpg" class="img-fit-cover ..." alt="..." />
 
-- cgit v1.3.1-23-gd82d