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、高さ50pxのボックスがある場合、面積は500pxの2乗になります。全体の面積を20%または50%など増やしたい場合、コンテナの新しい高さと幅をピクセル単位で計算するための式は何ですか?
幅と高さを比例させたいと思います。
面積を20%(1.20を掛ける)増やしたい場合は、幅と高さの両方に1.20の平方根を掛けます。