css - html li标签怎么按比例缩小
ringa_lee
ringa_lee 2017-04-17 11:52:59
0
2
652

如图,在ip5下面,这个ul就错位了,我想里面的每个li都缩小一些,最好是按比例缩小,怎么设置呢?

ringa_lee
ringa_lee

ringa_lee

reply all(2)
Ty80

To scale down, I suggest you try to make a mobile page. I guess you know that your problem has nothing to do with this, but let me talk about it. If you want to scale down, percentage layout, or rem layout, flex and many other new technologies Can do it.

Given your question, it is estimated that you are still new to the front-end.

Learn about: box-sizing css style, it will solve your problem

Tell me the reason for your problem: insufficient width causes floating, or inline elements and inline block elements move down. Under normal circumstances, the downward movement will not occur, so in fact, the element width and height change when you zoom the page, and the ultimate way to solve this change: set box-sizing

Ty80
-webkit-transform: scale(0.8);
transform: scale(0.8);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template