+ 1

In jQuery to set dimensions , we can use .height(10px) and .width(10px) , Can we set it using % or em or rem?

30th May 2019, 4:08 PM
Shubham Mhatre
Shubham Mhatre - avatar
2 Antworten
0
yes you can. just do $(sel).width("70%") or $(sel).width("20em")
30th May 2019, 4:29 PM
Farry
Farry - avatar
0
Yes
30th May 2019, 4:29 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar