If the traditional method of making this flip menu, at least need to cut the picture into 10 pieces, but also to add JS code, in the Picture button to add behavior, now completely with CSS to achieve, the picture as long as a, see the following figure:CSS code:
The code is as follows
Copy Code
#imgmenu {width:450px;height:25px; /* height is half of the background picture * *Backg
So how should we implement the flow navigation menu?I,
Move the mouse over Menu, that is, the Show prompt information.
II. Implementation steps
1. CSS code
Copy codeThe Code is as follows:
MenuBarHolder {width: 730px; height: 45px; background-color: #000; color: # fff; font-family: Arial; font-size: 14px; margin-top: 20px ;}
# MenuBarHold
So how do we implement the mobile navigation menu?
One, the effect chart
Mouse over menu, that is, show prompt information.
Second, the realization step
1, CSS Code
Copy Code code as follows:
Menubarholder {width:730px; height:45px background-color: #000; color: #fff; font-family:arial; font-size:14px; margin-top
Css|javascript| Menu | Right button
In the General Web page, ie browser's default right button menu is a fixed mode, most users browse the Web when the use of it is not high. For professional web designers, if you can design the right button menu personalized content, the style of how cool and convenient.
Just imagine,
Tip: you can modify some code before running Compatible with mainstream browsers and pure CSS drop-down menuDEMOS Zero dollars advertising page Wrapping text around images Styled form Active focus Hover/click with no borders Styled form Removing active/focus borders Hover/click Shadow boxing Image map for detailed information Fun with background images Fade scrolling
Tip: you can modify some code before running Javascript + css tab switch menu effectJavascript + css tab switch menu effectBack to topProduct DescriptionSpecification parametersPackaging InformationWarranty terms Warranty terms Product Overview Specification parameters:Warranty terms:
CSS code:*{margin:0;padding:0;}#nav {Background: #eee;width:600px;height:40px;margin:0 Auto; /* Center */}ul{List-style:none;}UL li{Float:left;width:90px;line-height:40px;Text-align:center;position:relative;}a{Text-decoration:none;Color: #000;Display:block;}a:hover{Background: #0F6;}UL Li ul li{Float:none;Background: #eee;margin-top:2px;}UL Li ul {Position:absolute;top:40px;left:0px;Display:none;/* Hide First */}UL Li ul Li a:hover{Background: #06C;}U
Participating browsers: IE6/IE7/IE8/ff3/op9.6/sf3/chrome2
Operating System: Windows
The first release of the blue ideal classic Forum. For more information, see the source.
This time, the cascading menu for the project uses the pure CSS method. Hook, you can do it with CSS.
Some predecessors have already completed such an instance. I thought I could
:CSS code:*{margin:0;padding:0;Text-decoration:none;}. Nav {margin:30px Auto;width:800px;height:30px;Background: #FF5640;}. NAV > Ul > li {List-style:none;Float:left;font-size:13px;width:130px;height:30px;line-height:30px;Text-align:center;}. Nav A:link,. Nav a:visited {Color: #fff;}. Nav ul > li:hover{Background: #FF3E3E;}. sec-nav {Display:none;width:128px;height:118px;border:1px solid #FF3E3E;}. Sec-nav > Ul > li{List-style:none;font-size:13px;line
When using CSS to create navigation menus, we mainly use the lia attribute of css to improve the effect of making more beautiful menus with css in the future.
Method 1: directly write the code for implementation
The effect is as follows:
The Code is as follows:
The Code is as follows:
No table menus required
Home
News
Sports
Weather
This is a drop-down menu combining css and js. It has been tested to support mainstream browsers and is suitable for enterprise websites. If you need it, please refer to the following statement:
Although I have been working at the web Front-end for many years, I am helpless and have little technical requirements. Html and css are used a lot, and JavaScript is ra
For me, the standard HTML element (Select) is annoying. It cannot be normally displayed on IE browser. Another point is that it not only contains simple text. This example will completely discard the select element and build the DropDown element through JQuery and CSS. The select drop-down control may be used in Form Design. Unfortunately, the default select control of IE is very ugly and cannot be controlled by styles, you cannot add images or other
When using CSS to create navigation menus, we mainly use the lia attribute of css to improve the effect of making more beautiful menus with css in the future.
Method 1: directly write the code for implementation
The effect is as follows:
The Code is as follows:
The Code is as follows:
No table menus required
Home
News
Sports
Weather
Developed a div + CSS menu that is compatible with Firefox and shared with everyone.
Xmlns = "http://www.w3.org/1999/xhtml">
My website
[Url] www.netany.net [/url]
[Url] www.netany.net [/url]
[Url] www.netany.net [/url]
My account
Payment
Online Payment
Register remittance
Online recruitment
Historical Account
Website
Nonsense not to say more, directly to everyone to paste the code, the specific code as follows:
The above is a small set to introduce the css+jquery to realize a simple folding menu, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!
First show you the effect of the picture:
View effect Source Download
HTML code section:
The code is as follows:
The above code is very simple, jquery+css achieve gorgeous horizontal level two drop-down menu-source download is complete, I hope you like.
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.