how to set dynamically height to element?

后端 未结 4 2299
眼角桃花
眼角桃花 2021-02-19 03:18

I am trying to set dynamically height to element in my demo .I will tell you issue I am taking static or constant value of height in my demo .I take 250px const

4条回答
  •  Happy的楠姐
    2021-02-19 04:09

    The following should work. Putting it in the codepen snippet won't show as the window size is small so it draws height from the min-height attribute. Test it out on a bigger window.

    tell Mother name

提交回复
热议问题