如何在特定的CSS网格区域部分跨越?

发布于 2025-01-22 22:20:04 字数 334 浏览 0 评论 0原文

我是CSS网格的新手,我计划使用网格而不是Flex创建以下布局,但我无法找到使用部分网格区域的方法。我还尝试分为8FR。是否可以使用CSS网格进行操作?分数也可能在以后发生变化。就像在第一行中而不是1/3空间一样。它可能会更改为1/4、1/4、2/4。

有人可以让我知道是否有可能在一个网格区域中进行吗?提前致谢。

I am new to CSS grid, I am planning to create the following layout with Grid rather than flex, but I am not able to find a way to use partial grid area. I also tried splitting into 8fr. Is it possible to do it with CSS grid? Fractions may change later on as well. Like instead of 1/3 space in the first row. It might change to 1/4, 1/4, 2/4.

Can someone let me know if it's possible to do it in one grid area or not? Thanks in advance.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文