Webkit滚动条错误
|
iPod / iPhone / iPad上的Webkit滚动条出现问题-用户无法向下滚动。滚动条看起来就像一条浮线,页面中断了一半。 (它在Chrome和Safari中正常工作。)
有什么方法可以保留滚动条,但是在苹果产品上没有自定义滚动条吗?
这是我的网站,这是我的滚动条代码:
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
height: 10px;
}
::-webkit-scrollbar-button:vertical:increment {
background-color: #fff;
}
::-webkit-scrollbar-track-piece {
background-color: #eee;
-webkit-border-radius: 3px;
}
::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}
::-webkit-scrollbar-thumb:horizontal {
width: 50px;
background-color: #ccc;
-webkit-border-radius: 3px;
}
html {
overflow: auto;
background-color: #FAFAFA;
-webkit-font-smoothing: antialiased;
}
body {
background: #FAFAFA;
font-family: arial, serif;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 10px;
overflow-y: scroll;
overflow-x: hidden;
color: #999;
}
没有找到相关结果
已邀请:
1 个回复
亲奋漏
在您的站点中,主页上有以下样式:
将它们复制到一个名为ѭ1的新文件中。现在,从您的站点中完全删除那些旧的。 JavaScript会自动加载滚动条CSS文件。