Change cursor image on scrollbar in chrome

前端 未结 2 417
终归单人心
终归单人心 2021-01-11 10:55

I need to change custom cursor for scrollbar in Chrome. I have lightbox which has set custom cursor with big X and Close text. Problem is that in chrome the cursor definitio

相关标签:
2条回答
  • 2021-01-11 11:45

    Try adding cursor: auto to your scrollable class

    .scrollable { 
      cursor: auto; 
    }
    

    Works with textareas, not sure with divs.

    0 讨论(0)
  • 2021-01-11 11:51

    You can use the vendor selectors for chrome's scrollbar to set styles. However, I don't think it will allow you to change the cursor. You could try this to see if it works:

    ::-webkit-scrollbar {
        cursor:pointer;
    }
    

    UPDATE

    After looking more into this issue, apparently there is a bug with Chrome and updates to the cursor on scrollbars. Here is the ticket, it is still open. You can still change the styles, but the customizations seem a bit limited.

    0 讨论(0)
提交回复
热议问题