Important: Locate, hide, display.(i) First build a two-time listulID= "UL1"> Li>HomeLi> Li>second pageul> Li>ahref= ' # '>Onea>Li> Li>ahref= ' # '>Botha>Li> Li>ahref= ' # '>Threea>Li> ul> Li> Li>Third pageLi>ul>(b) Set the style in CSS: Display the border of list items, set width and height, and set a background image for good looking.Li {
Page layout + Pure CSS Vertical drop-down menu IE6/IE7 compatible
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
This article mainly introduces jquery + css to implement the gorgeous horizontal level-2 drop-down menu-with source code download. if you need it, refer to the following:
View results Source Code Download
Html code:
The code is as follows:
Jquery encapsulates a simple and lightweight drag-and-drop customizable style plain div + css imitation modal pop-up box with Mask Layer
Recently, the encapsulation is addictive. I think of a lightweight pop-up box that was previously created. The style is separated from the script, So I re-encapsulated it and unified the style label into js.There are still some problems, but they do not affect the use. If
Tip: you can modify some code before running Black-blue CSS drop-down menu .menu ul li a:hover {color:#fff;background-color:#131546;} .menu ul li a:hover ul {display:block;position:absolute;top:25px;left:0;background:#fff;margin-top:0;margin-top:1px;} .menu ul li a:hover ul li a {display:block;background:#131546;color:#fff;height:auto;line-height:15px;padding:2px 16px 2px 16px;width:130px;width:120px;
Tip: you can modify some code before running Js css drop-down menu code First? Page Company Profile Market Introduction Customer service Market advantages Product Service Contact Info Financial pro
style= "background: #9999FF;p osition:absolute;left:12;top:38;width:120;Visibility:hidden ">style= "background: #9999FF;p osition:absolute;left:137;top:38;width:120;Visibility:hidden ">style= "background: #9999FF;p osition:absolute;left:260;top:38;width:120;Visibility:hidden ">Use JAVASCRIPT+DIV+CSS to implement the drop-down menu. Displays the corresponding div:function Show (menu) when the mouse moves to
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.