小米官网css3导航菜单代码。这是一款黑色风格的小米官方网站css3导航下拉菜单代码。效果图如下:
在线预览 源码下载
实现的代码。
html代码:
<div class="nav"> <ul> <li><a href="#">首页</a></li> <li> <a href="#"> 小米手机 <div class="xs"> <div class="xiao"></div> <img src="/static/imghwm/default1.png" data-src="img/1.jpg" class="lazy" / alt="小米官网css3导航菜单代码_html/css_WEB-ITnose" > </div> </a> </li> <li> <a href="#"> 红米 <div class="xs"> <div class="xiao"></div> <img src="/static/imghwm/default1.png" data-src="img/2.jpg" class="lazy" / alt="小米官网css3导航菜单代码_html/css_WEB-ITnose" > </div> </a> </li> <li><a href="#">小米平板</a></li> <li><a href="#">小米电视</a></li> <li> <a href="#"> 盒子 <div class="xs"> <div class="xiao"></div> <img src="/static/imghwm/default1.png" data-src="img/3.jpg" class="lazy" / alt="小米官网css3导航菜单代码_html/css_WEB-ITnose" > </div> </a> </li> <li> <a href="#"> 路由器 <div class="xs"> <div class="xiao"></div> <img src="/static/imghwm/default1.png" data-src="img/4.jpg" class="lazy" / alt="小米官网css3导航菜单代码_html/css_WEB-ITnose" > </div> </a> </li> <li><a href="#">合约机</a></li> <li><a href="#">服务</a></li> <li><a href="#">社区</a></li> </ul> </div>
css代码:
* { margin: 0px; padding: 0px; } .nav { position: relative; width: 994px; height: 52px; background: #404144; margin: 0 auto; } .nav li { list-style: none; float: left; line-height: 50px; } .nav li a { display: block; text-decoration: none; color: #FFFFFF; padding: 0px 15px; font-family: "微软雅黑"; } .nav li a:hover .xs { display: block; } .nav li a:hover { background: #333333; } .nav li a .xs { border: 1px solid #cccccc; border-top: none; display: none; width: 992px; background: #FFFFFF; position: absolute; top: 50px; left: 0px; } .nav li a .xs .xiao { position: absolute; top: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #FFFFFF; width: 0px; height: 0px; z-index: 999; } .nav li:nth-child(1) .xiao { left: 20px; } .nav li:nth-child(2) .xiao { left: 98px; } .nav li:nth-child(3) .xiao { left: 177px; } .nav li:nth-child(4) .xiao { left: 255px; } .nav li:nth-child(5) .xiao { left: 348px; } .nav li:nth-child(6) .xiao { left: 427px; } .nav li:nth-child(7) .xiao { left: 496px; } .nav li:nth-child(8) .xiao { left: 576px; } .nav li:nth-child(9) .xiao { left: 646px; } .nav li:nth-child(10) .xiao { left: 706px; }
via:http://www.w2bc.com/article/jquery-xiaomi-nav

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version
SublimeText3 Linux latest version