设定

fit-content, min-content, max-content

首先,当 container 设置为这三个值时,不管其他情况如何变化,其宽度始终贴合 inner,即使 inner + container 的宽度超出了 outer 的限制也是如此(超出时,网页的表现由 overflow 属性决定)。三者的不同体现在对 inner 宽度的影响上,下面对此分类讨论。

fill-available

发表回复