CSS滑动门Sliding door详解
以下为引用的内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
body {font-size:12px;}
.nav {margin:0 auto; text-align:center; font-weight:bold; border-bottom:3px
solid #579cc6;}
.nav a {display:inline-block; margin:0 3px; height:25px;
background:url(/upimg/allimg/090506/0158361.jpg) left bottom no-repeat; padding-left:15px; color:#666; text-decoration:none; cursor:pointer;} .nav a span {display:inline-block; height:25px; line-height:25px;
background:url(/upimg/allimg/090506/0158361.jpg) right bottom no-repeat;
padding-right:15px;}
.nav a:hover {background:url(/upimg/allimg/090506/0158361.jpg) left top
no-repeat; color:#FFF;}
.nav a:hover span {background:url(/upimg/allimg/090506/0158361.jpg) right
top no-repeat;}
.nav a.set {background:url(/upimg/allimg/090506/0158361.jpg) left top
no-repeat; color:#FFF; }
.nav a.set span {background:url(/upimg/allimg/090506/0158361.jpg) right top
no-repeat;}
</style>
</head>
<body>
<div class="nav">
<a class="set" href="#"><span>首页</span></a>
<a href="#"><span>分类一</span></a>
<a href="#"><span>分类分类</span></a>
<a href="#"><span>还可以再长一点</span></a>
<a href="#"><span>欢迎</span></a>
<a href="#"><span>我的博客</span></a>
</div>
</body>
</html>
Moondy
积安堂蜂蜜收集