Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 sencha 的 div 中添加一个滚动条,我尝试这样做 CSS 属性溢出-y:scroll。它显示滚动条,但滚动条被禁用。当列表通过触摸向上或向下时,它会显示滚动条。但它并非一直可见。有没有其他方法可以让滚动条一直可见?
尝试使用滚动条将此 css 放入 div
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 10px; } ::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); }