JTextArea text=new JTextArea () Text.setlinewrap (TRUE);//Set the line wrap, then do not need to set the horizontal scroll bar jscrollpane scroll=new JScrollPane ( text);//Set horizontal and vertical scroll bars to appear automatically scroll.sethorizontalscrollbarpolicy (jscrollpane.horizontal_scrollbar_as_needed) respectively; Scroll.setverticalscrollbarpolicy
1. Fixed positioningPosition:fixed, when set, the position of the element in the browser window is fixed, this time, whether horizontally moving the scroll bar, or vertical movement of the scroll bar, the element is dead will not move.But when fixed positioning elements, as the header part of the time, the browser window once reduced, do not move, it will lead to the right side of the navigation can not see
Colleagues in the project using the scroll event to load data, the result of IE tragedy. A simple optimization method is given, and the effect is obvious.
As long as the user changes the window size, the internal element size will be recalculated, which may cause the entire page to be rendered again, resulting in a large amount of CPU consumption. For example, call resize method, the user changes the window will be constantly triggered, the lower ve
When using the dialog plug-in, the default is the center of the screen, but when the page appears scroll, dialog did not scroll down with the scroll bar, then the user needs to scroll to locate the dialog, this is not human, in the name of the solution before the spread of jquery about the positioning of several method
Web site in the display of information, if the amount of data is too large, the solution is mainly three kinds of methods. 1. Pagination, the information pagination display. 2. Full page display, but the page is too long, affecting the browsing experience. 3. Using the scroll bar, the default scroll bar style is too single and the user experience is unfriendly. So we need to beautify the
The scroll bar in Vue is always positioned at the bottom of the scroll bar positioned at the bottom, the first thought is that the dynamic modification of the scroll bar to the top of the distance equal to the height of the div, code implementation: var div = document.getElementById (' data-list-content ') Div.scrolltop = Div.scrollheight But the problem comes, t
1. nicescroll: jquery rolling plug-in for desktop, mobile, and touch devices
Nicescroll is a jquery plug-in (since 1.5) that has a style similar to IOS/mobile devices. It supports Div, IFRAME, and scroll bar effects of a body. Applicable to iOS devices.
Online Demo
2. Lion style jquery scroll bar: nanoscroller
Nanoscroller provides a simple way to give your website a s
Scroll bar custom styles for Google Chrome and opera browsers650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/89/87/wKiom1gW1b6B7hdZAABGaUfMtsM212.png "title=" Scrollbarparts.png "alt=" Wkiom1gw1b6b7hdzaabgaufmtsm212.png "/>::-webkit-scrollbar//scroll bar integral section, where the properties are Width,height,background,border (just like a block-level element), and so on. (position 1)::-webkit-sc
JQuery has a lot to do with the scroll bar, but there are three attributes that are related to the drag of the scroll bar: scrolltop, ScrollLeft, ScrollHeight. One of the scrollheight attributes, the Internet almost does not search for its application skills, and I just need to use it.
We're only going to explore the scrolltop, ScrollHeight properties associated with vertical scrolling.
The correct unders
Author: Zhu JincanSource: http://blog.csdn.net/clever101
There are two functions related to the scroll bar in Windows API:Int setscrollinfo (Hwnd,Int fnbar,Lpscrollinfo lpsi,Bool fredraw);
Bool getscrollinfo (Hwnd,Int fnbar,Lpscrollinfo lpsi);
Setscrollinfo is used to set the rolling information of the window, and getscrollinfo is used to obtain the rolling information of the window. The parameter meanings of setscrollinfo are as follows:Parameter m
1. Create an image in unity as the background of the scroll bar view;2. Create an empty object under the image and create a unity-scroll view component under an empty object;3. Adjust the sub-object of the slide bar view;4, add the ScrollBar view content, add components on the Content parent object Grid Layout Group and content Size Fitter;Grid Layout Group: Controls the size and sequencing of all sub-objec
A few days ago, someone said that my signature reel is fine, so, ask me to do a tutorial, my side of the rough to do a ~ ~
First look at the effect of the picture:
1. Baidu to find a hinge material
2. Then it is open, I do not have to say it ~ ~
3. Duplicate layers,
4. Tick the scroll on the right with a pen. As shown in figure:
5.ctrl+enter, select, ctrl+j Copy, and command its layer as "right
The poetic scrolls of the opening ceremony of the Beijing Olympic Games, and the wonderful picture which it presents to us, we must still remember it! Today we use flash to make a poetic ink scroll to expand the animation, the main use of rectangular tools and gradient filling tools, easy to understand, suitable for practice.
First look at the effect of it:
Effect Preview
Production steps:
1. Create a new flash document of the default size, draw
ObjectiveThere is a special use JS to solve the browser scroll bar problem, life is always colorful, some scroll bar on the page, this time also rely on JS eldest brother to solve.One, inline scroll bar1. Here's a picture of the inline div with a scroll bar, remembering its looks.2. The page source code is as follows:
Since Tencent Weibo online, basically started to use, until now, as a developer, also saw Tencent Weibo has been constantly changing, do not know whether you have found, Tencent Weibo provides two ways to load data, one is paging, one is scrolling browser scroll bar loading data, Paging feature I think we've all done too much, and today I'm going to share with you that I scroll through the data with the
This kind of demand seems to feel not very reasonable, because the data is so much the pull from the human or machine operations are more painful.
No way because of the demand down, can only operate as required. On the internet to find a lot of related controls are feeling a bit large, accounting for more resources. No way to spend half a day to make a custom control of semi-finished products, take out share, such as a master see please more guidance.
Requirements: Ajax scrolling
javascript|js| Dynamic I now have a layer, there is a div in the layer, when the content is more often appear in the scroll bar, I now think, when the scroll bar appears, the width of the table div is equal to the width of the div minus the width of the scroll bar, how to dynamically get the width of the scroll bar, Or
Effect
Example 1
code is as follows
copy code
Example 2
The code is as follows
Copy Code
$ (function () {//gets the distance from the top of the browser to locate the elementvar NAVH = $ (". Nav"). Offset (). Top;//scroll bar Event$ (window). Scroll (function () {//Gets the sliding distance of the
In the Word 2010 document window, users can cancel or display vertical and horizontal scroll bars as needed, as described in the following steps:
Step 1th, open the Word 2010 document window, and click the file → options button, as shown in Figure 2012021601.
Figure 2012021601 Click the Options button
Step 2nd, open the Word Options dialog box and switch to the Advanced tab. In the display area, select or cancel the show horizontal
In the Word2013 document window, users can cancel or display vertical and horizontal scroll bars as needed, as described in the following steps:
Step 1th, open the Word2013 document window, and click the file → options button, as shown in Figure 2013072539.
Figure 2013072539 Click the Options button
Step 2nd, open the Word Options dialog box and switch to the Advanced tab. In the display area, select or cancel the show horizontal
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.