menu MDUI Documentation
color_lens
view_carousel
JavaScript Plug-in
keyboard_arrow_down
local_mall
Resources
keyboard_arrow_down

media

MDUI defines some classes for pictures and videos, which can make them have responsive characteristics and some predefined styles.

image

Responsive

in img Add a class to the label .mdui-img-fluid The image can be adapted to the width of its parent element.

Example
100%x250
<img class="mdui-img-fluid" src="image.png"/>

Fillet picture

in img Add a class to the label .mdui-img-rounded Make the picture rounded corners.

Example
200x200
<img class="mdui-img-rounded" src="image.png"/>

Round picture

in img Add a class to the label .mdui-img-circle Make the picture round.

Example
200x200
<img class="mdui-img-circle" src="image.png"/>

video

Responsive embedded video

Add a class to the parent element of the embedded video .mdui-video-container Make the video adapt to the width of the parent element.

Example
<div class="mdui-video-container">
  <iframe height=498 width=510 src="//player.youku.com/embed/XNzUwOTk5MzE2" frameborder=0 allowfullscreen></iframe>
</div>

Responsive HTML5 video

in video Add a class to the label .mdui-video-fluid Make the video adapt to the width of the parent element.

Example
<video class="mdui-video-fluid" controls>
  <source src="video.mp4" type="video/mp4">
</video>

List of CSS class names

Class name effect
.mdui-img-fluid Responsive image
.mdui-img-rounded Fillet picture
.mdui-img-circle Round picture
.mdui-video-container Responsive embedded video
.mdui-video-fluid Responsive HTML5 video
Set document theme

Theme color

Main color

Accent color

200x200