CSS: Possible to “push” Webkit scrollbars into content?

前端 未结 2 500
时光说笑
时光说笑 2021-02-07 06:49

Normally a scrollbar is positioned like this:

________________________________________
|                          |           |
|         content          | scro         


        
2条回答
  •  深忆病人
    2021-02-07 07:44

    You can do it with a transparent border. But you need to set background-clip: padding-box; or it won't work.

    Example: http://jsfiddle.net/6KprJ/1/

提交回复
热议问题