Css + html implement menu learning with adaptive width and css adaptive
This article uses css and html to adapt to the text length menu.
After implementation, it is as follows:
The implementation code is as follows:
I have always been very interested in CSS + Div layout, especially in the face of IE6, which is a tough problem. We always try our best to take care of it. I usually seldom learn this and take notes here.
You can also create a nice navigation menu using the image designed by the artist, but you can still use the clever CSS.
Here is a navigation that I created
CSS and JS are two ways to implement the accordion folding menu. css tutorial
CSS3 exploitation: target pseudo class implementation. Accordion h3 + div {height: 0; overflow: hidden;/* Hide the excess part */transition: height 0.3 s hide-in;/* a special effect to expand, take 0.3s to fly slowly */}. accordion: target h3 + div {height: 300px; overflow: auto;/* auto
A drop-down menu example of "proficient in CSS" and "proficient in css"
This example is from the drop-down menu. I have made some changes, and the principle is indeed very simple, but the author's code has a clear sense of attention and is worth learning. In addition, the author's color changes during the interaction p
so that I can definitely position the UL element. With Display:none, I hide all the LI elements, but keep the current Li elements displayed as block elements. Then, when the mouse hovers over the nav element, all Li is added Display:block. To mark the current Li element, I'll add an icon. For the center and Right alignment, use the left and left properties for the positioned UL element. Look at the final demo effect: @media screenand (max-width:600px) {.nav{ position:relative; Min-height:40px;}
css| menu Many of the application's main menus have this effect, usually dark, once the mouse moved to the menu, immediately brighter; the mouse is not on the menu is flat, once the mouse moved to the menu, the menu bar immediatel
Horizontal drop-down Menu
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
CSS Dropdown navigation menu effect
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
CS
Css|javascript| Menu | Right button
In fact, on the Web page to implement the style of the menu is already an old topic, under normal circumstances, the right menu on the Web page is the default IE right key options, including some commonly used functions.
But sometimes we run into problems like this, we want to prohib
css| Menu | dropdown
Step One: Create a menu
First of all, it is very important to establish a menu architecture, the best way is to use the UL to establish the content of the menu from the main relationship. Is it complicated? In
This is a pure CSS menu, two-level dropdown navigation effect, is the most concise CSS navigation menu, compatibility is also very good, IE7/8, Firefox and other support, and it is to learn CSS
css| Menu
Although in my website and the article has mentioned the CSS to make the menu method, but many beginners still not very clear how realizes, as well as realizes the principle, I thought specially writes a detailed tutorial will be helpful to everybody.
Let's take a look at a
] But in CSS level-2 menu, if the hyperlink in the level-1 menu is #, you only need to click the level-1 menu, the level-2 menu corresponding to this level-1 menu will always be displayed on the webpage and cannot be hidden. It is
With the concept of Web page standardization popular, more and more websites adopt CSS architecture. CSS Architecture Web pages are not only consistent with the standards of the consortium, but also very attractive. Standardized web pages start with a nice CSS menu, and if you're still hesitating, take a look at the fo
Author: Yi shuihan
[It168 practical skills] with the concept of Web Page standardization rooted in the hearts of the people, more and more websites use the CSS architecture. CSS architecture web pages not only comply with W3C standards, but also very beautiful. The Standardization page starts with the beautiful CSS menu
css| Menu
Simple hidden Vertical Menu expands content when hover. This effect in JS has many versions, but this can be said to be a unique version of the CSS. This menu can be displayed normally in IE5.5,IE6,IE7,FF,OPERA,NS8 as well as MacFF1.5 and Safari, although Mac IE5.
Quick CSS navigation menu Creation
As the concept of Web Page standardization is deeply rooted in the hearts of the people, more and more websites adopt the CSS architecture. CSS architecture web pages not only comply with W3C standards, but also very beautiful. Standard Web pages start with beautiful
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.