This article mainly introduces the method of using the jquery Scroll () method to distinguish the horizontal and vertical scroll bars of browsers, and the friends who need them can refer to the following jquery in the scroll () event, I want to judge the current scroll bar transverse also portrait; I began to use the global variable record scrolltop value to ju
This example for you to share the jquery menu navigation bar Implementation code for your reference, the specific contents are as follows
1. HTML code
2. CSS Code
*{
margin:0px;
padding:0px
}
. content{
margin:40px 100px;
Float:left;
}
UL, li{
list-style:none;
main,.hmain{
width:150px;
Background: #222;
font-size:16px;
Text-align:center;
Cursor:pointer;
line-height:40px;
Color:white
}
. main>a,.hmain>a{
Text
First Summary:1, IE6 does not support the pseudo-class outside a label;2, IE6 Multi-level navigation needs to use the relative positioning and absolute positioning, with left and top;3, IE6 need to give 2 levels of Li set background color, otherwise hover slide down, leave 1 Li, 2 level Li will disappear;4, JQuery write less, do more.Why Study Html+css+jquery:Because the company OA online nearly 2 years, intermittent write some webform+
Jquery vertical announcement rolling implementation code
I think you have seen the announcement rolling and many implementation methods. The following describes how to use jquery to implement vertical announcement rolling. Do not miss it if you are interested.
The Code is as follows:
This article illustrates the effect of jquery's navigation menu with red vertical multilevel right expansion. Share to everyone for your reference. Specifically as follows:
Here is a red vertical multi-level to the right to expand the navigation menu, more for the blog site navigation menu, red style, very beautiful, stretching to the right menu.
The screenshot of the running effect is as follows:
The
Small valley practical Jquery (III)-horizontal vertical menu
The speed of an instance seems to be a little low every day. Do more today. well, this is a simple menu. There are two common menus in Web projects: vertical and horizontal. let's look at the initial code.
The most basic menu and sub-menu for html code implementation
Practice-menu Effects
Me
hidden and the arrow image is changed at the same time.JavaScript is the great God that gives the web a life, and jquery is a multi-browser-compatible JavaScript library. With it it makes JavaScript write less and do a lot of other things. after referencing the jquery library, write code such as the following:JavaScript code:$ (document). Ready (function () { //Portrait Menu $ (". Main > a"). Click (fun
This is a use of jquery animation effects and CSS to create a side edge pop-up vertical navigation, the entire pop-up process is smoother, and the code is very simple, if you are looking for a driven vertical navigation, then you can try this.
HTML Source code:
Copy Code code as follows:
Demo code is very simple, small partners according
Often have a friend asked about the Div horizontal Center and vertical center of the problem, today is written before a jquery implementation method to share;
Remember, jquery.js do not refer to the 2.0.0 version above, to refer to the version of 1.10.1, or IE9 the following incompatible;
Compatible with various browsers:
jquery method
The code is
In front-end html code, the vertical and horizontal scrolling of text or images is achieved by using marquee. However, with the consideration of browser compatibility and w3c standards, later I thought it would be implemented using javascript code. Later, I liked jquery again. The content below will be helpful to beginners. Do not spray it, but I am very grateful for your guidance.Principle: The principle o
By default, the vertical alignment of the row of the jquery easyui DataGrid is text-top. The result is as follows:
After modification, the effect is as follows:
Solution:
The DataGrid only has the align attribute, indicating the horizontal alignment. You can set CSS as follows:
Set the column Styler when creating the DataGrid:
Columns: [[{field:'Monitoring website', Title: 'Monitoring
Announcement scrolling presumably everyone has seen it, the implementation of a lot of ways, below for everyone to introduce the use of jquery to achieve vertical bulletin scrolling, interested friends do not miss The code is as follows: ;nbsp; nbsp;
Originally in the front-end HTML code, the implementation of the horizontal vertical scrolling text or pictures, are used marquee, but with the consideration of browser compatibility and compliance with the standards of the international standard, then think of it or use JavaScript code to implement. Later, I like the jquery, the content of the following write hope for beginners Some help, master not to spr
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.