xhtml+css制作不规则导航
来源:
中文源码网 浏览:206 次 日期:2024-05-01 20:12:23
【下载文档: xhtml+css制作不规则导航.txt 】
xhtml+css制作不规则导航
先看图(图片只是大致做了一下)
效果展示:
运行代码框
无标题文档
* {margin:0;padding:0;font:normal 12px/25px "宋体";}
body {background:#f8f8f8;}
ul {list-style:none;width:300px;height:25px;margin:20px auto;}
li {float:left;width:86px;height:25px;text-align:center;margin:0 -5px;display:inline;}
a {color:#fff; float:left;width:86px;height:25px;top:0;left:0;background:url(/articleimg/2008/04/5627/03.gif) center center no-repeat;}
a:hover {color:#000;background:url(/articleimg/2008/04/5627/02.gif) 0 0 no-repeat;width:86px;position:relative;}
菜单
菜单
菜单
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]