Design of ScrollBar, a custom control of cocos2dx
**************************************** ************************************
Time:
Author: Sharing_Li
Reprinted Source: http://blog.csdn.net/sharing_li/article/details/42685321
**************************************** ************************************
When we use TableView and ScrollView of cocos2dx, if we want to display a lot of content, it is not co
CSS3 custom scroll bar style-webkit-scrollbar
Edit
Delete
Do not feel that the original browser with the scroll bar is not beautiful, but also see a lot of Web site custom scroll bar appears high-end, even the chrome32.0 Development Board has abandoned the original scroll bar, more beautiful. How does the WebKit browser customize the s
fragment) is placed behind the slider:d Ouble-button//double-button Pseudo-class applies to button and track fragments. Determines whether the position of the end of the track is a pair of buttons. That is, the track fragment is next to a pair of buttons. : Single-button//single-button Pseudo class applies To button and track fragments. Determines whether the position of the end of the track is a button. That is, the orbital fragment is next to a separate button. : No-button No-button
::-webkit-scrollbar {/* Hide rollers */Display:none;}ObjectiveWebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom styles, so the use is still quite large. Of course, the scroll bar style that is compatible with all browsers currently does not exist.DemonstrateTake a look at these 2 scroll bars demo:demo1 (image), Demo2 (pure CSS3 version)Scroll bar com
Do not feel that the original browser with the scroll bar is not beautiful, but also see a lot of Web site custom scroll bar appears high-end, even the chrome32.0 Development Board has abandoned the original scroll bar, more beautiful. How does the WebKit browser customize the scroll bar?
ObjectiveWebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom
Do not feel that the original browser with the scroll bar is not beautiful, but also see a lot of Web site custom scroll bar appears high-end, even the chrome32.0 Development Board has abandoned the original scroll bar, more Beautiful. How does the WebKit browser customize the scroll bar?
ObjectiveWebKit supports areas with overflow properties, list boxes, Drop-down menus, and textarea scroll bar custom
::-webkit-scrollbar {/* Hide rollers */Display:none;}CSS3 custom scroll bar style-webkit-scrollbarObjectiveWebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom styles, so the use is still quite large. Of course, the scroll bar style that is compatible with all browsers currently does not exist.DemonstrateTake
WebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom styles, so the use is still quite large. Of course, the scroll bar style that is compatible with all browsers currently does not exist.DemonstrateTake a look at these 2 scroll bars demo:demo1 (image), Demo2 (pure CSS3 version)Scroll bar composition
::-webkit-scrollbar scroll bar integral part
(255,255,255, .2)75%,transparent75%,transparent);}.test-5::-webkit-scrollbar-track {/*滚动条里面轨道*/-webkit-box-shadow:inset005pxrgba(0,0,0,0.2);/*border-radius: 10px;*/background:#EDEDED;}
HTML code:
123
divclass="test test-5">divclass="scrollbar">div>div>
The effect is as follows:The above can make their favorite scroll bar;If you have more than one scroll bar appearing
WebKit supports areas with overflow properties, list boxes, drop-down menus, textarea custom styles for scroll bars. Of course, the scroll bar style that is compatible with all browsers currently does not exist.The composition of the scroll bar:::-webkit-scrollbar scroll bar integral part::-webkit-scrollbar-thumb The small box inside the
ObjectiveWebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom styles, so the use is still quite large. Of course, the scroll bar style that is compatible with all browsers currently does not exist.DemonstrateTake a look at these 2 scroll bars demo:demo1 (image), Demo2 (pure CSS3 version)Scroll bar composition
::-webkit-scrollbar scroll bar inte
Do not feel that the original browser with the scroll bar is not beautiful, but also see a lot of Web site custom scroll bar appears high-end, even the chrome32.0 Development Board has abandoned the original scroll bar, more beautiful. How does the WebKit browser customize the scroll bar?
ObjectiveWebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom
CSS3 custom scroll bar style-webkit-scrollbarSometimes I think the original scroll bar that the browser comes with is not very beautiful, how does the WebKit browser customize the scroll bar?WebKit supports areas with overflow properties, list boxes, drop-down menus, textarea custom styles for scroll bars. Of course, the scroll bar style that is compatible with all browsers currently does not exist.The comp
Do not feel that the original browser with the scroll bar is not beautiful, but also see a lot of Web site custom scroll bar appears high-end, even the chrome32.0 Development Board has abandoned the original scroll bar, more beautiful. How does the WebKit browser customize the scroll bar?
Objective
WebKit supports areas with overflow properties, list boxes, drop-down menus, and textarea scroll bar custom s
When the content is outside the container, the container will appear scroll bar, its own scroll bar sometimes does not meet our aesthetic requirements, then we can use CSS pseudo-class to implement the scroll bar customization.First we need to understand the scroll bar. The scroll bar from the appearance is composed of two parts: 1, you can slide the part, we call it slider 2, the track of the scroll bar, that is, the slider track, generally speaking, the color of the slider is darker than the c
The Open source project Progresswheel provides us with a wide variety of circular scrollbars, which this article leads readers to use to implement custom scroll bars. In the official demo, a screen shows several styles, and this article only describes one style, that is, centered display, transparent layout. And with static encapsulation, both start and close require a single line of code to complete.
Open Source Project Progresswheel addres
Introduction
It's my first article. At first I must express my thank to codeproject and all of selflessness people.
I have tried to look for a sample show me how to skin a window's internal scrollbar, but, unfortunately, I failed. some days ago, I got inspiration: In order to skin a window's internal scrollbar, it may be possible to hide a window's scrollbar belo
Town Field Poem:The Pure Heart sentiment wisdom language, does not have the world name and the benefit. Learn water under the hundred rivers, give up arrogant slow meaning.Learn to have a small return to feed root, willing to cast a conscience blog. Sincere in this writing experience, willing to see the text to inspire.——————————————————————————————————————————CodeFrom Tkinter import *root=tk () Scrolly=scrollbar (root) scrolly.pack (side=right,fill=y
Scrollbar-base-color: #f8f8f8; /* The basic color of the scroll bar */
Scrollbar-face-color: #333; */* Figure 5, the color of the three-dimensional scroll bar * * What is the difference?
I tried, like, the same thing.
Sets the color of the scroll bar to slide the areaScrollbar-face-colorSets the color of the sliderIf you have
Browser
Do not display correctly, please check the browser version, this c
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.