所以我有这个网格:
+---------+------------------------------+---------+
| <div> | <p> - 1000 characters long | <div> |
+---------+------------------------------+---------+
里面p有没有空格的超长字符串。divs是具有固定尺寸的占位符。这将产生以上结果:
display: grid;
grid-auto-flow: column;
grid-template-columns: auto minmax(0, 1fr) auto;
但是更改minmax(0, 1fr)为1fr:
+---------+----------------------------------------+
| <div> | <p> - 1000 characters long | <div> |
+---------+----------------------------------------+
它溢出其父级,超出屏幕大小。为什么它的行为不像minmax?
慕斯709654
胡说叔叔