有一条长长的石头,外形像一条龙,石头上长满斑斑点点的东西,像龙身上的鳞。人生就是一场旅行,不在乎目的地,在乎的应该是沿途的风景以及看风景的心情。春色满园关不住,一枝红杏出墙来。
CSS样式:
复制代码
代码如下:<style>
*{margin:0;padding:0;}
a{text-decoration:none;color:#666;}
li{list-style:none;}
body{font-family:Verdana,SimSun;font-size:12px;color:#666;text-align:center;background:#EEE;}
#box{width:760px;margin:100px auto 0 auto;text-align:center;background:#A33236;}
#nav{width:720px;height:30px;margin:0 auto;line-height:30px;}
#nav a{display:block;width:90px;height:30px;text-align:center;color:#FFF;}
#nav li{float:left;}
#nav li ul{display:none;position:absolute;margin-left:-20px;}
#nav li ul li{clear:both;}
#nav li ul a{width:130px;border-top:1px solid #FFF;text-align:center;background:#A33236;-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;transition:all 0.5s ease;}
#nav li ul li a:hover{background:#FFF;color:#A33236;}
</style>
JAVASCRIPT:
复制代码
代码如下:<script>
/*-----显示子菜单-----*/
function display(li) {
var subNav = li.getElementsByTagName("ul")[0];
subNav.style.display = "block";
}</p> <p>/*-----隐藏子菜单-----*/
function hide(li) {
var subNav = li.getElementsByTagName("ul")[0];
subNav.style.display = "none";
}
</script>
复制代码
代码如下:<div id="box">
<div id="nav">
<ul>
<li onmouseover="display(this)" onmouseout="hide(this)">
<a rel="nofollow noopener noreferrer" href="javascript:;">学校概况</a>
<ul>
<li><a rel="nofollow noopener noreferrer" href="#"><span>学校简介</span></a></li>
<li><a rel="nofollow noopener noreferrer" href="#">学校领导</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">机构设置</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">院系设置</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">创新平台</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">师大印象</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">校标释义</a></li>
</ul>
</li>
<li onmouseover="display(this)" onmouseout="hide(this)">
<a rel="nofollow noopener noreferrer" href="javascript:;">教学科研</a>
<ul>
<li><a rel="nofollow noopener noreferrer" href="#">教务处</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">教务教学管理系统</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">精品课程</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">科学技术处</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">社会科学处</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">实验教学示范中心</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">语言文字网</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">实习支教专题网</a></li>
</ul>
</li>
<li onmouseover="display(this)" onmouseout="hide(this)">
<a rel="nofollow noopener noreferrer" href="javascript:;">招生就业</a>
<ul>
<li><a rel="nofollow noopener noreferrer" href="#">研究生招生</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">普高招生</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">高职本科招生</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">成教招生</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">就业指导</a></li>
</ul>
</li>
<li onmouseover="display(this)" onmouseout="hide(this)">
<a rel="nofollow noopener noreferrer" href="javascript:;">学生工作</a>
<ul>
<li><a rel="nofollow noopener noreferrer" href="#">共青团</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">学工在线</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">学生工作管理系统</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">心理教育中心</a></li>
</ul>
</li>
<li onmouseover="display(this)" onmouseout="hide(this)">
<a rel="nofollow noopener noreferrer" href="javascript:;">信息服务</a>
<ul>
<li><a rel="nofollow noopener noreferrer" href="#">网络中心</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">网络自助服务</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">邮件系统</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">选课系统</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">财务信息</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">VPN:教师专线</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">后勤报修服务</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">国内高校信息</a></li>
</ul>
</li>
<li><a rel="nofollow noopener noreferrer" href="#">图书资源</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">校友工作</a></li>
<li><a rel="nofollow noopener noreferrer" href="#">招标信息</a></li>
</ul>
</div>
</div>
到此这篇关于带有css3动画效果的兼容多浏览器简单导航条示例就介绍到这了。世上没有绝望的处境,只有对处境绝望的人。更多相关带有css3动画效果的兼容多浏览器简单导航条示例内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!