Please take a leave of absence, masters! ! !
How to adapt the label width according to the browser window size?
I'm in a hurry. . . .
For example, a website like this http://www.yohobuy.com/search?msort=2&misort=21&sort=124
Its li can be changed according to the size of the window, but the li The position will not shift
What is the implementation principle? .
Thank you everyone
width:100%
It’s controlled by js
There are two ways to adapt the width
One is to use a percentage instead of the specific amount px
The other is to use JS to determine the width of the current window and then allocate the width. .
The width is adaptive; that is width: 100%