html - 垂直滚动条未出现在网站上
问题描述
我不知道为什么垂直滚动条没有显示在我的网站上。它曾经工作正常,但我最近不得不重新上传网站,之后滚动条不再工作,即使所有代码都应该完全相同:
这是我的 layout.scss 文件中的主体 HTML
html,
body {
@include box-sizing(border-box);
height: 100%;
font-size: 99%;
}
body {
display: block;
background: $dark-grey url('../img/backgrounds/broken_noise.png') repeat;
}
.row {
@include col-container;
margin: auto;
}
/*Dark Scrollbar */
@media screen and (-webkit-min-device-pixel-ratio:0) {
::-webkit-scrollbar {
width: .85em;
height: .85em;
}
::-webkit-scrollbar-track {
background-color: $grey-500;
}
::-webkit-scrollbar-thumb:vertical {
height: 5em;
background-color: $grey-900;
}
}
解决方案
这种行为是由于(从)class
上的:<body>
_utilities.scss
.nonscroll {
overflow: hidden;
}
HTML
<body onload="init();" class="onePage nonscroll HomePage no-sidebar" dir="ltr">
推荐阅读
- html - Bootstrap 3:自动对齐Container内的多个项目
- r - 传递本身就是参数的 R 函数的参数
- android - 在游戏中使用 UDP 套接字通信是否安全?
- perl - 使用 select 返回的文件句柄
- ruby-on-rails - Apartment gem - 将当前数据库添加到所有服务器日志
- r - R数据框和列表类型的列
- sql - 将所有 XML 特殊字符转换回常规字符(在 SQL 内)
- python - 拆分列中的单词
- sql - SQL Server,分组依据并在静态状态后获得第一个结果
- unit-testing - mapbox-gl - 如何为简单测试实例化地图