上面是运行的效果,下面是代码
纯CSS写的折角效果的导航菜?/p>
<!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" c />
<title>无标题文?lt;/title>
<style>
#menu{ font-family:Arial;
font-size:14px; }
#menu a,#menu a:visited
{ display:block; float:left; position:relative; color:#FFF;
background-color:#06F; padding:6px; margin:0px 3px 0px 0px; text-decoration:none;}
#menu a span{ width:0; height:0;
position:absolute; top:0; right:0;
border-right:solid 6px #FFF; border-bottom:solid 6px #06F;
overflow:hidden;
}
#menu a:hover{ background-color: #0CF; color:#FFF; }
#menu a:hover span{ border-bottom:solid 6px #06F; }
</style>
</head>
<body>
<div id="menu">
<a href="#"><span class="right"></span>首页</a>
<a href="#"><span></span>服务</a>
<a href="#"><span ></span>电话</a>
</div>
</body>
</html>
要想精通CSS网页制作,就来北京珠峰培训学?/strong>