DIV CSS制作的个性水平导航菜单实例

网站建设 2023-01-28 21:38www.1681989.com免费网站

先看下效果:


CSS样式代码:

以下为引用的内容
#potermenu{
border-: 7px solid black; /optional border across /
marg: 0;
paddg: 0;
}
#potermenu ul{
marg: 0;
marg-left: 15px; /menu offset from left edge of wdow/
float: left;
paddg-left: 10px;
font: 12px 宋体;
background-color: black;
background: black url(../images/leftround.gif) bottom left no-repeat; /optional left round corner/
}
html #potermenu ul{ /IE6 only rule. Decrease ul left marg and add 1em bottom marg/
marg-bottom: 1em;
marg-left: 7px; /menu offset from left edge of wdow IE/
}
#potermenu ul li{
display: le;
}
#potermenu ul li a{
float: left;
color: white;
font-weight: ;
paddg: 2px 11px 7px 7px;
text-decoration: none;
background: url(../images/bbbbb.gif) bottom center no-repeat;
}
#potermenu ul li a:visited{
color: white;
}
#potermenu ul li a:hover, #potermenu ul li a#selected{ /hover and selected lk/
color: white;
background-color: darkred;
}
#potermenu ul li a#rightcorner{
paddg-right: 0;
paddg-left: 8px;
background: url(../images/rightround.gif) bottom right no-repeat; /optional right round corner/
}

HTML完整
以下为引用的内容

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml" lang="gb2312" xml:lang="gb2312">
<head>
<title>站酷CSS代码演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<lk rel="stylesheet" type="text/css" href="css/css.css" _fcksavedurl=""css/css.css"" _fcksavedurl=""css/css.css"" />
</head>
<body>
<div id="potermenu">
<ul>
<li><a href="#">主 页</a></li>
<li><a href="#">自定菜单</a></li>
<li><a href="#" id="selected">自定菜单</a></li>
<li><a href="#">自定菜单</a></li>
<li><a href="#">自定菜单</a></li>
<li><a href="#">自定菜单</a></li>
<li><a href="#">自定菜单</a></li>
<li><a href="#" id="rightcorner"> </a></li>
</ul>
</div>
<br style="clear: left" />
</body>
</html>
提供打包下载:https://.jb51./files/soft/jb51nav1107.rar

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by