We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么解决最后一行的问题...
The text was updated successfully, but these errors were encountered:
grid-template-columns 可以设定固定的值,也可以设置百分比
grid-template-columns
// 横向 2 个 200px grid-template-columns: 200px 200px;
用下面这段代码可以解决上面的问题:repeat表示重复,而 auto-fill 值表示能撑满容器的最大个数。
auto-fill
.parent { display: grid; grid-template-columns: repeat(auto-fill, 220px); grid-gap: 1rem; justify-content: space-between; }
Sorry, something went wrong.
No branches or pull requests
Flex
情况一
怎么解决最后一行的问题...
The text was updated successfully, but these errors were encountered: