Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个 100px 宽 x 50px 高的盒子,那么面积就是 500px 的平方。如果我想将整体面积增加 20% 或 50% 或其他什么,计算容器的新高度和宽度的公式是什么?
我假设你想保持宽度/高度成比例。
如果您想将面积增加 20%(乘以 1.20),请将宽度和高度都乘以 1.20 的平方根。