您的位置:首页 > 编程语言

有用的导航栏代码

2015-11-28 11:55 295 查看
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<style type="text/css">
*{
list-style: none;
padding: 0;
margin: 0;
}
.aaa li{
float: left;
margin-right: 20px;
}
</style>
<ul class="aaa">
<li><a href="####">首页</a></li>
<li><a href="####">首页</a></li>
<li><a href="####">首页</a></li>
<li><a href="####">首页</a></li>
</ul>
</body>
</html>

连接css文件和js文件

<link href="yangshi.css" rel="stylesheet" type="text/css"/>
<script src="taiyi.js" language="javascript"></script>
控制a标签代码

a{color:black;}
a:hover{color:#FFF}
.change{background-color:f73760;}
.normal{background-color:white; color:#000;}

a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: