This article mainly introduces the CSS3 custom scroll bar Style sample code, the content is very good, now share to everybody, also for everybody to make a reference.
Scroll bar is a very common thing, but some browser comes with the scroll bar is really not very good-looking ah, the following can be used as a learning, to explore the implementation of the custom scroll bar, so that your scroll bar can be
Jquery-leonaScroll-1.2-custom scroll bar plug-in, jquery custom scroll bar
LeonaScroll-1.2.js
Download link: http://share.weiyun.com/bb531dd6b1916c0023c176897182dc15 (password: iZck) [contains compressed version]
Welcome to use leonaScroll-1.2.js, if you find more problems during use, please correct me!
Introduction: it is a custom vertical scroll bar based on th
Tags: HTTP color ar SP on cti bs html ad
A scroll bar is a pseudo element that can be customized. This pseudo class can render WebKit's own scroll bar and only render it according to the custom CSS information.
/* Scroll bar */:-WebKit-scrollbar {Height: 7px; width: 10px;} // The width can also be defined as a percentage.
// The slider in the scroll bar:-WebKit-sc
What this article brings to you is about CSS3 how to implement a custom scroll bar style? (code), there is a certain reference value, the need for friends can refer to, I hope to help you.
CSS3 Custom scroll bar StylesScroll bar composition::-webkit-scrollbar scroll bar integral part::-webkit-scrollbar-thumb scroll b
/* scroll bar global style-------such as just mo a specified scroll bar can take its ID class and so on */::-webkit-scrollbar {width:10px;//indicates the width of the vertical scrollbar height:10px;//indicates the height of the horizontal scroll bar }/* Normal slide block style */.sys_module_conten::-webkit-scrollbar-thumb {Background-color:rgba (0,0,0,.05); bord
For the style of the custom browser scroll bar, if the website does not consider non-WebKit kernel browsers, you can try to implement it with only CSS.
You can simply modify several items to see the effect:
:-WebKit-scrollbar {width: 12px; Height: 12px ;}/* Width of the vertical direction of the scroll bar and height of the horizontal direction */:-WebKit-scrollbar
Background: In recent projects because of the unified page style, the use of a custom scroll bar, before the completion of the scroll bar, the same way as the online scroll bar plug-in implementation of the method, equivalent to build a wheel, through the CSS3The online scroll bar plug-in is mostly through the monitoring of the content of the scrolling event, due to the original JS scrolling event There are some bugs, so in fact, with jquery mousewhee
For implementing a custom scroll wheel, you first need to understand the entire layout:1.1. The Levels to display and2. The relationship that needs to be scrolled level:TheLevel 1 has an overflow hidden property that is intended to hideMore than 2 levels out of the section.2--due to theLevel 1OfUnder the packageLevel 2 overflow hidden part can be controlled byThe scrolltop of Level 1 is scrolled.2, the position of the scroll bar:If you're behind the c
Proprietary properties of IE:
The code is as follows
Copy Code
Scrollbar-arrow-color:color; /* Triangle Arrow Color *Scrollbar-face-color:color; /* The color of the three-dimensional scroll bar (including the background color of the arrow section) * *Scrollbar-3dlight-color:color; * * The color of the solid scroll bar bright EdgeScrol
From. NET Compact Framework 2.0, form has a new bool type property, which is used to determine whether to automatically add a scroll to form for scrolling when the control is out of the customer zone.
However, we recently encountered the use of this
1. Drag the cscrollbar control in the dialog box and modify the ID,2. Add the following code to the initdialog function of the dialog box to complete cscrollbar initialization.Cscrollbar * pscrollbar = (cscrollbar *) getdlgitem
[Abstract]
When we create a table, sometimes the data is too long, the number of columns is too large, and horizontal or vertical scroll bars are required, we generally add a scroll_auto Div to the outer layer of the table and set it:
/* CSS
Today, we used the WPF DataGrid and found a slightly hidden problem.
Http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/5cc4f719-8b16-440b-ada9-657564f0097b/
In my try. DataGrid's parent container and super-parent containers must be
The recent project needs, so simply wrote a judge the scroll bar bottom plug-in code, welcome to shoot Brick Exchange!The code is as follows://scroll bar Scroll to the bottom of the--by Xqs(function($) {$.fn.scrollbot=function(OPT, callback)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.