zoukankan      html  css  js  c++  java
  • 仿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

  • 相关阅读:
    window.loaction.href 不自动跳转的问题
    SQL语句
    C# 里面swith的或者
    跨域
    memcached总结
    应用 memcached 提升站点性能
    安装和使用 memcached
    Unity3D学习笔记(三十):Lua
    Unity3D学习笔记(二十九):AssetBundle
    Unity3D学习笔记(二十八):Editor
  • 原文地址:https://www.cnblogs.com/webdm/p/1963469.html
Copyright © 2011-2022 走看看