+ 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 Réponses
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
Aujourd'hui en vedette
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes
Create Agent
0 Votes