Make height responsive according to width in JavaScript

前端 未结 0 916
南方客
南方客 2021-01-12 15:09

I have a rectangle which I want to be responsive according to the width.

Currently, my logic is straight-forward:

aspectRatio = 16 / 9
win = {
    widt         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题