开发者

HTML scroll bar width

I would like to know if there is any scroll bar property in HTML to change the width of the default scroll bar in HTML.

The default size of the scroll bar is 13px. is it possible to i开发者_JS百科ncrease the the pixel value.

Can anyone help...


What you want to do is not possible - and if it was, it would be considered by an overwhelming majority of site visitors as "hijacking" their screen: change in scrollbar would make people feel that they had been trapped, and you'd very likely lose every visitor you got, never to return.

I would strongly suggest finding another, more user-friendly strategy. Basically, you need to adapt to the user's needs, not adapt their browser window to your design.


No you can't change the browser's scrollbar width with HTML or Javascript. You can change the width in windows display parameters.


Webkit browsers can style scrollbars see documentation

if you want some crossplatform solution, use javascript. SlimScroll for example.


This is not HTML ... but it takes the plausible wrapper approach

Check this out>> Resize Scroll-Bar


One more thing is in 'internet explorer 10' Scroll comes on as an overlay, It's a cool feature but it can create a mess sometime on any pixel perfect requirement.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜