Adaptive Picture HTML width and height

    Very simple, with the addition of the parent object block width, height adaptation. as follows:

<img style="display: inline-block; width: 100%; max-width: 100%; height: auto;" src="Media/1.jpg" />

Guess you like

Origin www.cnblogs.com/dengshuangjang/p/12538626.html