Alibabacloud.com offers a wide variety of articles about css horizontal scroll menu, easily find your css horizontal scroll menu information here online.
var ow = Math.ceil ($ (this). Outerwidth ());
Get Margin-left
var ml = Math.ceil (OW/2);
Implement element centering effect
$ (this). CSS ({
"Margin-top": "-" + MT + "px",
"Top": "50%",
"Margin-left": "-" + ml + "px",
"Left": "50%",
"width": w,
"Height": H,
"Position": "Absolute"
});
});
};
}) (JQuery);
Copy CodeHtml Markup
Copy CodeNext you need to call the jquery plugin you just wrote
A very good third-level horizontal navigation menu written by jquery. The code is concise and clear, and it is very easy to modify. I will post it below. You can download the required menu, which is provided below!
JQUERY horizontal third-level navigation menu effect down
shadow of the stereo scroll bar
Scrollbar-track-color:color; /* Solid scroll bar background color * *
Scrollbar-base-color:color; /* The base color of the scroll bar * *
Presumably, you can also define the cursor to define the scroll bar's mouse gesture.
Here, a long time ago danger made a visual tool base
Our web App on the desktop may use the elements that use great deal of width. On many occasions we can ' t simply turn these elements to columns so, they fit on a small screens. Such elements may isn't only fit inadequately on small screens, they could ruin the entire layout of our page if we ' re not c Areful. In many cases, we can use a horizontal-scrolling menu to preserve the width, but keep it easily u
In the process of learning jquery, encountered the most commonly used in the Project drop-down menu, in line with the principle of high efficiency, in this summary of the horizontal and vertical pull down the implementation of the menu, the formation of their own small class library, so that their own in the project process can be convenient to call. HTML secti
JQuery + CSS implements a slide navigation menu code, jquery navigation menu
Slide menus are widely used in website design and can be seen on many websites. It can display key information, make it more readable and aesthetic, and meet the user experience value!
Today, I will show you how to use jquery and css to implem
stereo scroll bar
Scrollbar-track-color:color; /* Solid scroll bar background color * *
Scrollbar-base-color:color; /* The base color of the scroll bar * *
Presumably, you can also define the cursor to define the scroll bar's mouse gesture.
Here, a long time ago danger made a visual tool based on flash, simple but
Today for everyone to share based on the CSS3 implementation of beautiful Horizontal scrolling menu button, very good, with reference value, need to refer to the friend
Nonsense not much to say, direct:
Then the code:
Css:
In order to facilitate reading, especially optimized code, mainly related to:
CSS3 Animation (transtion)
Element's hiding (overflow/visibi
Effect:HTML code:CSS code (file name: STYLE.CSS)@charset "Utf-8";/* CSS Document *//* Style Clear */*{margin:0;padding:0;}ul{List-style:none; /* Clear the points in front of UL */}Li{float:left;}a{Text-decoration:none;Display:inline-block;height:30px;line-height:30px;width:80px;Background-color:rgba (0,51,204,0.3);margin-left:2px;Text-align:center;font-size:18px;}a:hover{Background-color:rgba (0,51,204,0.5);}Web H
, IE8 above, when the table content height is greater than 440px, there will be scroll bar, the width of table will automatically become 420px, that is width-browser.scroll.width (sense, playing Chinese characters too troublesome). However, the IE7 does not automatically narrow the scroll bar out of the width, but the scroll bar appears below. If the contents of
How to Use CSS to write a drop-down menu ., Css write drop-down menu
Navigation menus are essential functions for every website and must be accessed by friends who learn how to create a website. How can I create a simple and beautiful level-2 drop-down menu in
the stereoscopic scroll bar */Scrollbar-track-color:color; /* Stereo scroll bar background color */Scrollbar-base-color:color; /* The base color of the scroll bar */That's about it, you can also define the cursor to define the mouse gesture of the scrollbar.Here, a long time ago danger made a flash-based visualization tool , simple but useful:CSS styles are auto
*/nbsp; scrollbar-darkshadow-color:color; /* The color */nbsp; scrollbar-track-color:color of the outer shadow of the stereo scroll bar; /* Stereo scroll bar background color */nbsp; scrollbar-base-color:color; /* The base color of the scroll bar */nbsp;------------------------------------------------------------------------------------------ Presumably, you can
1. Scroll bar composition
::-webkit-scrollbar scroll bar integral part
::-webkit-scrollbar-thumb The small box inside the scrollbar, can move up or down (or left to right, depending on whether it is a vertical scroll bar or a horizontal scroll bar)
::-webkit
The example of this article is about JS to achieve the horizontal stretch of the dynamic menu effect code. Share to everyone for your reference. Specifically as follows:
This is a JS to achieve the longitudinal stretching transverse stretching, dynamic telescopic menu, tight-aligned CSS
page default scroll bar HTML {overflow: hidden;}"2" ie7-browser is different from other browsers about the width setting mechanism of the scroll bar .box { width : 200px ; : 100px ; Background-color : pink ; overflow : scroll ;} .in {: 100% ; : 60px ; Background-color : LightGreen ;} class= "box"> class= "in" > Test text div>div> A vertical
Sample Code of the second-level drop-down menu implemented by pure CSS, And the css navigation menu
Sample Code of the second-level drop-down menu implemented by pure CSS:The level-2 drop-down menu is applied to many websites. It
Because in most of the current projects are used in many of the scroll bar, sometimes used to simulate the scroll bar, now the scroll bar CSS can also be solved.For example, NetEase mailbox scroll bar looks very good, is the use of CSS
something different. such as QQ music and my personal homepage. The CSS definition scroll bar style is limited to webkit browsers, which are defined by some pseudo classes of CSS.
The code is as follows
Copy Code
::-webkit-scrollbar//scroll bar integral part::-webkit-scrollbar-button//Butt
The code is as follows:div {Scrollbar-face-color: #fcfcfc;Scrollbar-highlight-color: #6c6c90;Scrollbar-shadow-color: #fcfcfc;Scrollbar-3dlight-color: #fcfcfc;Scrollbar-arrow-color: #240024;Scrollbar-track-color: #fcfcfc;Scrollbar-darkshadow-color: #48486c;Scrollbar-base-color: #fcfcfc}The scroll bar style mainly involves the following CSS properties:Overflow property: Retrieves or sets how content is displa
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.