css - Position: absolute with overflow-y: scroll Scroll doesn't reach the top of the object
问题描述
So I recently launched my first site! The thing that gave me the biggest headache was this little scroll on the left side of the main page not reaching the top, making the first items impossible to read.
The site is on https://divot.now.sh . All the code is there. I would also appreciate any feedback about design, functionality and security since it's my first website and I'm trying to learn the most out of it.
解决方案
You need to add display: inline-block;
to your #boxes section:
#boxes{
display: inline-block;
}
推荐阅读
- r - 在 R 中创建一个包含 3 个变量的数据透视表
- python - 组合包含一些相同和不同列名的数据框字典?
- branch - Guidewire:在单独的分支中开发后,是否有一种简单的方法来处理合并费率账簿
- javascript - 单击onClick按钮后如何调用两个不同的函数
- javascript - React-Redux 在尝试使用 for 循环计算数组中值的总和时得到 NaN
- nginx - 将 nginx 中的 URL 从 host:port/ 重写为 host:port/myDir
- vba - 不会继续执行 #N/A 单元格的宏
- amazon-web-services - 有没有可能,通过ses使用lambda触发器和使用自定义电子邮件模板的Cognito用户池验证码
- python - .pth 文件是否存在安全风险,我们如何对其进行清理?
- python - Django 显示两次相同的消息