zoukankan
html css js c++ java
简单漂亮的导航栏效果
今天在网站偶然看到的一个效果,简单错位实现的导航。
感觉不错挺漂亮,给简单改造了一下,给需要的朋友,兼容IE6\IE7\FF。
效果:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>简单漂亮的导航栏效果</title> <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; background-color: #000000; color: #FFFFFF; } #LDH ul{ 180px; } #LDH li { list-style:none; margin-bottom: 1px; text-align: left; } #LDH li a{ display:block; line-height: 20px; text-decoration: none; height: 20px; background-color: #FFCC00; color: #000000; } #LDH li span { display: block; height: 20px; 20px; float: left; background-color: #636563; border-right- 1px; border-right-style: solid; border-right-color: #000000; margin-right: 12px; } #LDH li a:hover { background-color: #FFD942; margin-right: 1px; } #LDH li a:hover span { background-color: #82837E; 19px; } </style> </head> <body> <div id="LDH"> <ul> <li><a href="#"><span> </span>air accessory kit</a></li> <li><a href="#"><span> </span>air blow gun</a></li> <li><a href="#"><span> </span>air chuck</a></li> <li><a href="#"><span> </span>connector</a></li> <li><a href="#"><span> </span>hardware assortment</a></li> <li><a href="#"><span> </span>hose</a></li> <li><a href="#"><span> </span>plastic coupler</a></li> <li><a href="#"><span> </span>quick coupler</a></li> <li><a href="#"><span> </span>tire inflator</a></li> <li><a href="#"><span> </span>vavle</a></li> </ul> </div> </body> </html>
提示:可以先在文本框内,根据需要修改代码后再运行
查看全文
相关阅读:
BZOJ 2876 骑行川藏
BZOJ 2875 随机数生成器
DT_修改注册项
ip001
ip
阿里大鱼 阿里云api
JS_全
destoon框架二次开发【整理】
destoon_笔记
栏目class导航
原文地址:https://www.cnblogs.com/joe235/p/1247513.html
最新文章
js杂记:x:function(){}
【时间工具】整理下java时间换算专题
POJ 2151 Check the difficulty of problems (概率dp)
Light OJ 1364 Expected Cards (期望dp,好题)
UPC 2224 Boring Counting (离线线段树,统计区间[l,r]之间大小在[A,B]中的数的个数)
容斥原理的两道题
详解几个方程的解法
lightoj 1408 Batting Practice (概率问题,求期望,推公式)
HDU 3998 Sequence (最长上升子序列+最大流)
Manacher算法 O(n) 求最长回文子串
热门文章
Cayley n顶点树数定理
POJ 2480 Longge's problem (积性函数,欧拉函数)
SPOJDIVCNT2: Counting Divisors(莫比乌斯反演)
NOI十连测 第四测 T2
HDU 4292 Food(最大流)
NOI十连测 第四测 T3
NOI十连测 第四测 T1
NOI十连测 第三测 T1
BZOJ 1065 奥运物流
BZOJ 1064 假面舞会
Copyright © 2011-2022 走看看