最佳答案
is there a way to set a limit on how small the group of elements can be?
min-width
css 属性正是您所需要的。
It is possible to have a fixed size elements and then when the window size changes, the elements also changes its size (and also all the paddings, margins and stuff).
percentage
值可以帮助您实现该功能。
The CSS data type represents a percentage value. It is often used to define a size as relative to an element's parent object. Numerous properties can use percentages, such as width, height, margin, padding, and font-size. MDN
关于javascript - 是否可以在窗口大小更改时自动更改组元素的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52473238/