清风细雨楼 Design By www.eepep.com

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

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

运行效果截图如下:

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

在线演示地址如下:

http://demo.jb51.net/js/2015/div-css-f-dreamweaver-pic-menu-codes/

具体代码如下:


复制代码代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DIV CSS之仿DreamWeaver图形菜单</title>
<style>
*{ margin:0; padding:0; list-style:none; border:none; line-height:1.8;}
#info{ background:#5F768B; padding:10px;}
#info ul{background:url(images/bg.gif) repeat-x left top; padding:2px 10px;height:31px;}
#info li{float:left;padding:2px;}
a:link,a:visited{ background:none;float:left;display:block; padding:4px;}
a:hover{background:url(images/on.gif) no-repeat left top; float:left; display:block;}
a:active{background:url(images/on2.gif) no-repeat left top; float:left; display:block;}
</style>
</head>
<body>
<div id="info">
<ul>
<li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/1.gif"> <li><a href="#" hidefocus="true"><img src="images/2.gif"> <li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/3.gif"> <li><a href="#" hidefocus="true"><img src="images/4.gif"> <li><img src="/UploadFiles/2021-03-30/m.gif"> <li><a href="#" hidefocus="true"><img src="images/5.gif"> <li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/6.gif"> <li><a href="#" hidefocus="true"><img src="images/7.gif"> <li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/8.gif"> <li><img src="images/m.gif"> <li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/9.gif"> <li><a href="#" hidefocus="true"><img src="images/10.gif"> <li><a href="#" hidefocus="true"><img src="/UploadFiles/2021-03-30/11.gif"> <li><a href="#" hidefocus="true"><img src="images/12.gif"> </ul>
</div>
<p style="clear:both"></p>
</body>
</html>

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

清风细雨楼 Design By www.eepep.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
清风细雨楼 Design By www.eepep.com