• 仿Vista风格按钮菜单代码(纯CSS打造)


    代码简介:极酷的纯CSS代码实现的仿Vista风格的按钮导航菜单,菜单的每一项像一个按钮,当鼠标放到任一按钮上的时候,会交替背景,给人很好的操作体验,而且它没有使用任何其它的脚本控制,如果你正在建立你的个人博客,在为菜单发愁,不妨就试试这一个吧。

    代码内容:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>仿Vista风格按钮菜单代码(纯CSS打造)_网页代码站(www.webdm.cn)</title>
    <style type="text/css">
    .menu2 {padding:0 0 0 32px; margin:0; list-style:none; height:35px; background:#fff url(http://www.webdm.cn/images/20090917/button1.gif); 
    
    position:relative; border:1px solid #000; border-0 1px; border-bottom:1px solid #444;}
    .menu2 li {float:left;}/*/*/
    .menu2 li a {display:block; float:left; height:35px; line-height:35px; color:#aaa; text-decoration:none; font-size:11px; font-family:arial, 
    
    verdana, sans-serif; font-weight:bold; text-align:center; padding:0 0 0 8px; cursor:pointer;}
    .menu2 li a b {float:left; display:block; padding:0 16px 0 8px;}
    .menu2 li.current a {color:#fff; background:url(http://www.webdm.cn/images/20090917/button3.gif);}
    .menu2 li.current a b {background:url(http://www.webdm.cn/images/20090917/button3.gif) no-repeat right top;}
    .menu2 li a:hover {color:#fff; background:#000 url(http://www.webdm.cn/images/20090917/button4.gif);}
    .menu2 li a:hover b {background:url(http://www.webdm.cn/images/20090917/button4.gif) no-repeat right top;}
    .menu2 li.current a:hover {color:#fff; background:#000 url(http://www.webdm.cn/images/20090917/button3.gif); cursor:default;}
    .menu2 li.current a:hover b {background:url(http://www.webdm.cn/images/20090917/button3.gif) no-repeat right top;}
    </style>
    </head>
    <body>
    <ul class="menu2">
    <li><a href="http://www.webdm.cn"><b>网页代码站</b></a></li>
    <li><a href="/"><b>Privacy Policy</b></a></li>
    <li class="current"><a href="/"><b>资源导航</b></a></li>
    <li><a href="/"><b>Where to find us</b></a></li>
    <li><a href="/"><b>Contact us</b></a></li>
    <li><a href="http://www.webdm.cn"><b>关于我们</b></a></li>
    </ul>
    </body>
    </html>
    <br>
    <p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!</p>
    

    代码来自:http://www.webdm.cn/webcode/2988c1db-2e98-425d-a817-a0222fd50e53.html

  • 相关阅读:
    C语言实现mq收发数据的函数
    4G通信模块在ARM平台下的应用
    4G 通信模块在ARM 平台下的应用
    修改web前端访问端口
    从零开始用 Flask 搭建一个网站(一)
    Python实现Windows定时关机
    前端和后端的数据交互(jquery ajax+python flask+mysql)
    python开源项目及示例代码
    Django读取Mysql数据并显示在前端
    C++关于string的一些用法
  • 原文地址:https://www.cnblogs.com/webdm/p/1963469.html
Copyright © 2020-2023  润新知