Overflow-y: Scroll not showing scrollbar in Chrome

后端 未结 5 1094
生来不讨喜
生来不讨喜 2020-12-29 03:57

I am generating a list of organisations of the left hand side of this page: http://www.ihhub.org/member-map/

This list is generated through appending

相关标签:
5条回答
  • 2020-12-29 04:04

    I am using Windows 8 and Google Chrome version is 48.0.2564.97. And its working perfect. See in image highlighted area.

    0 讨论(0)
  • 2020-12-29 04:07

    Add this to your css

    .list::-webkit-scrollbar {
        -webkit-appearance: scrollbartrack-vertical;
    }    
    

    or

    .list::-webkit-scrollbar {
       -webkit-appearance: scrollbarthumb-vertical;
    } 
    
    0 讨论(0)
  • 2020-12-29 04:11

    I am using Crome Version 48.0.2564.97 m

    And it is working just fine.. Change it to overflow-y:auto in case if there are not enough items it will not show scroll.

    0 讨论(0)
  • 2020-12-29 04:19

    I am seeing scroll bar well. If you are using Mac, you may want to make sure that scrollbars are always shown

    0 讨论(0)
  • 2020-12-29 04:24

    According to CSS - Overflow: Scroll; - Always show vertical scroll bar?: OSx Lion hides scrollbars while not in use to make it seem more "slick", but at the same time the issue you addressed comes up: people sometimes cannot see whether a div has a scroll feature or not.

    CSS fix:

    ::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 7px;
    }
    ::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(0,0,0,.5);
        -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
    }
    
    0 讨论(0)
提交回复
热议问题