undefinedfix
Sign in

How can CSS or JS realize the proportional display of a video element without knowing the width and height?

Mahdi edited in Fri, 23 Sep 2022

How can CSS or JS realize the proportional display of a video element without knowing the width and height , It is not truncated and the proportion is not fixed.

1 Replies
gerdkolano
commented on Fri, 23 Sep 2022

Set the width or height, and set the other to auto