Company recently to do component library, some radio boxes, check boxes, drop-down menus need to be beautiful custom,Idle time makes a component (a high-demand browser) drop-down menu./********* realization Function Start **************/Using CSS pseudo-class: Focus implements the drop-down menu basic functionSelectClick the
ObjectiveSince I did the smart City project, I was a backend developer, instantly turned to front-end development, but I still like the front-end. The front end of those things, actually quite interesting, HTML implementation is static, using AJAX can interact with the database, plus JS and jquery after the move, plus CSS after the more cool. Because the project needs, check the information and write some cool level two
For a simple and hidden menu, there is only one menu label for the indicator at first. When you move the mouse over the menu label, the complete menu is displayed. Javascript has many versions, but few have CSS versions. So far, I think this
Css
The effect is as follows:
1, download all the contents of this example:
Click here to download the source file
2. Insert Code:
Put the following code in the
3. Set
Put the following code in the
4. Adding or removing items
Browsers allowed: IE 6, ie 7, Opera 9, Firefox 2, Safari 2
Original connection:Http://www.ndesign-studio.com/blog/mac/css-dock-menu
Jquery is another excellent javascr merge PT framework after prototype. It has attracted many JavaScript experts from around the world to join its team. Most of the pages that involve front-end events and animation effects are related to jquery. This blog is a small demo of jquery + CSS to achieve menu animation effects. I hope you will have some gains.
There are 5 images to be prepared for this demo, and
Note the point:1. Setting the width and height of the A tag is not useful, and can be set in two ways(1). Display:block;(2). Float:left; 2. Set the drop-down menu, and most importantly(1). Use positioning Position:absolute; define the UL tag under the Li tag, hide the 2-level column, Display:none;(2). The floating effect of the Li list is canceled, Float:none;(3). Then define the mouse slide over the effect of the Li tag definition, li:hover ul {di
This article is to share the content of the CSS implementation of the response drop-down menu code, the content is very reference value, I hope to help the need for small partners.
First, Introduction
The Responsive drop-down menu can have different effects on multiple mobile displays.
Second, the code is as follows
body{
margin:0;
}. nav{
Width:100%;background
This time to bring you with HTML+CSS implementation of the drop-down menu, with HTML+CSS to achieve the attention of the drop-down menu is what, the following is the actual case, together to see.
Code:
:
Believe that you have read the case of this article you have mastered the method, more exciting please pay atten
Pure CSS Two-level portrait menu=====================@charset "Utf-8";/* CSS Document */* {margin:0px Auto;padding:0px;font-size:100%;/* The size of all text inherits the size of the font set inside the body */Font:inherit;/* Font inheritance */}UlLi {margin:0px;padding:0px;}Body {font-size:14px;Font-family: "Microsoft Jas Black";Color: #999;Text-align:center;}.
Vertical navigation menu is also an important form of Web application, the so-called vertical navigation menu refers to the left or right side of the Web page from top to bottom arrangement of a navigation form. Let's look at the effect first!
As shown in the illustration, let's look at the code structure:
From the above can be seen, the XHTML part of the code horizontal code slightly different, we
This article describes the CSS+JS implementation of the click Text pop-up timer automatically closed div Layer Menu method. Share to everyone for your reference. The specific analysis is as follows:
Here with CSS+JS to achieve click Text after the animation to expand a div layer menu, the expiration will automatically
Making an activity drop-down menu (jquery CSS)
Web design 16:38:04 read 437 comments 2 font size: large, medium, and small subscriptionsI have introduced how to create several navigation items and have a good response. Today I will introduce you to a navigation item with sub menus, which is also made using the CSS and jquery functions.
Step 1. Create HTML
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 {
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:hov
; Divclass= "MSG">a>Flasha>Div> Divclass= "MSG">a>Integrala>Div> Divclass= "MSG">a>Commentsa>Div> Divclass= "MSG">a>Concerna>Div> Div> Divclass= "text">Document contentDiv> Div>Body>HTML>Implementation of the method: first do a HTML tag, do a basic style out, we want to put the user this box mouse touch after a drop-down menuAfter the good effect:To achieve this function is to pay attention to a few details of the Sibuxiang will do oth
First onToday, children's shoes asked me the multi-level menu problem, using offset to get the location, but Chrome's offset and IE's offset get the result is not the same, I think this problem does not need to use JavaScript to get the location, Direct use of CSS positioning can be very convenient to implementThen wrote a simple multilevel menu, posted hereDOCTY
Using the pure CSS technology to create the navigation menu up Arrow icon, do not use the image, CSS implementation, challenge their own CSS layout level, the final effect of their own satisfaction, if you are interested in this, you need to study CSS code well.
"-//W3C
Tip: you can modify some code before running Classic css drop-down menuDrop-down menu-http://www.111cn.netDEMOSDEMOS Zero dollars Wrapping text Styled form Active focus HOVER/CLICK> HOVER/CLICK > Styled form Active focus Hover/click Shadow boxing Image map Fun backgrounds Fade scrolling Em sized images MENUSMENUS Spies menu Vertical
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.