有用的导航栏代码
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;
}
<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;
}
相关文章推荐
- 在C++里类多一点好还是少一点好?
- 在C++里类多一点好还是少一点好?
- C++中char*与wchar_t*之间的转换
- C++中char*与wchar_t*之间的转换
- java泛型总结2-1之核心概念
- delphi平方开方
- hibernate继承关系映射关系方法(二)--每个子类一张表
- python抓取gb2312/gbk编码网页乱码问题
- Java学习日记-2.1 运算符
- python培训day5 随笔
- 输出素数的代码优化
- MATLAB 机器人逆解 ikine
- Java新手之路——Day01 dos
- C语言学习之结构体与指针部分----结合doubango sip协议栈源代码学习---------阿冬专栏!!
- Sip协议栈学习(一)---———阿冬专栏!!
- Maven搭建Spring+Struts2+Hibernate项目详解
- SpringMVC数据验证
- Java堆内存的10个要点
- 关于 ASPCMS中产品或文章使用分类TAG使用ASPCMS:CONTENT调用出错的解决方法
- JAVA正则表达式-捕获组与非捕获组