DIV+CSS实现仿DreamWeaver界面图形菜单效果代码

网站建设 2023-01-28 21:38www.1681989.com免费网站

本文实例讲述了DIV+CSS实现仿DreamWeaver界面图形菜单效果代码。分享给大家供大家参考。具体如下

这是一款DIV+CSS实现的图形菜单仿DreamWeaver效果,做了兼容性处理,火狐和IE都无Bug了。

运行效果截图如下

在线演示地址如下

具体代码如下


复制代码
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DIV CSS之仿DreamWeaver图形菜单</title>
<style>
{ marg:0; paddg:0; list-style:none; border:none; le-height:1.8;}
#fo{ background:#5F768B; paddg:10px;}
#fo ul{background:url(images/bg.gif) repeat-x left ; paddg:2px 10px;height:31px;}
#fo li{float:left;paddg:2px;}
a:lk,a:visited{ background:none;float:left;display:block; paddg:4px;}
a:hover{background:url(images/on.gif) no-repeat left ; float:left; display:block;}
a:active{background:url(images/on2.gif) no-repeat left ; float:left; display:block;}
</style>
</head>
<body>
<div id="fo">
<ul>
<li><a href="#" hidefocus="true"><img src="images/1.gif" alt="A" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/2.gif" alt="B" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/3.gif" alt="C" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/4.gif" alt="D" align="absmiddle" /></a></li>
<li><img src="images/m.gif" alt="M" align="absmiddle" /></li>
<li><a href="#" hidefocus="true"><img src="images/5.gif" alt="E" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/6.gif" alt="F" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/7.gif" alt="G" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/8.gif" alt="H" align="absmiddle" /></a></li>
<li><img src="images/m.gif" alt="M" align="absmiddle" /></li>
<li><a href="#" hidefocus="true"><img src="images/9.gif" alt="I" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/10.gif" alt="J" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/11.gif" alt="K" align="absmiddle" /></a></li>
<li><a href="#" hidefocus="true"><img src="images/12.gif" alt="L" align="absmiddle" /></a></li>
</ul>
</div>
<p style="clear:both"></p>
</body>
</html>

希望本文所述对大家的div+css程序设计有所帮助。

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by