css implements responsive dynamics to maintain the aspect ratio of pictures and videos

aspect-ratio: 16/9;

One line of css code to get it done

Width Height

The height parameter after / can be omitted and defaults to 1

Guess you like

Origin blog.csdn.net/weixin_46607967/article/details/128392428