css - Trying to figure our CSS grid for page
问题描述
Trying to figure out why my top container isn't laying out correctly. I'm just getting into CSS Grid. https://codesandbox.io/embed/stupefied-haze-v633r?fontsize=14&hidenavigation=1&theme=dark
Edit
I found my problem finally, my header container wasn't placed to close at the correct spot. Rookie mistake( That I wish I would stop making)
解决方案
如果您指的是 .wrapper 类,那么您需要设置一个最大宽度才能遵循其余部分。
如果您指的是在右上角您有一些空白空间的事实是您在网格上创建了这些区域并且它们没有被使用所以而不是
grid-template-areas: "showcase showcase top-box-a" "showcase showcase top-box-b";
grid-template-areas: "showcase showcase" "showcase showcase";
如果没有回答您的问题,即使是更具体的容器。
推荐阅读
- python - 在 PyQt5 上将 .ui 转换为 .py 时出现问题
- android - SpeechRecognizer 和 MediaRecorder 不能同时工作
- angular - Angular + Asp Core 2 http Post 数据始终为空
- cgal - 转换 CGAL::Surface_mesh 的最简单方法
- python - 用 Python 解析 Linux 命令
- php - php xml 数据到 json 以特定格式编码
- php - SetDrawColor() 的行为类似于 SetFillColor()
- scala - Scala为类型分配动态值
- c# - C# Entity Framework 在此上下文中仅支持原始类型或枚举类型
- html - 两个 html 部分之间的差距