zoukankan      html  css  js  c++  java
  • 精致纯CSS打造绿色漂亮导航栏

    代码简介:

    极精致的纯CSS实现的菜单,兼容性非常好,条例WEB标准,能用性好,用到有修饰图片,请根据代码地址自己下载。

    代码内容:

    <!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>精致纯CSS打造绿色漂亮导航栏_网页代码站(www.webdm.cn)</title>
    <style type="text/css">
    .pro10 {padding:0 0 0 32px; margin:0; list-style:none; height:30px; position:relative;}
    .pro10 li {float:left; background:url(http://www.webdm.cn/images/20090915/pro_ten_1.gif);}
    .pro10 li a {display:block; float:left; height:30px; line-height:29px; background:url(http://www.webdm.cn/images/20090915/pro_ten_0.gif) no-
    
    repeat; color:#ddd; text-decoration:none; font-size:11px; font-family:arial, verdana, sans-serif; font-weight:bold; text-align:center; padding:0 
    
    0 0 15px; cursor:pointer;}/*/*/
    .pro10 li a b {float:left; display:block; padding:0 15px 0 0; background:url(http://www.webdm.cn/images/20090915/pro_nine_0.gif) right top;}
    .pro10 li.current a {color:#fff; background:url(http://www.webdm.cn/images/20090915/pro_ten_2.gif);}
    .pro10 li.current a b {background:url(/jscss/demoimg/200905/pro_ten_2.gif) right top;}
    .pro10 li a:hover {color:#fff; background:url(http://www.webdm.cn/images/20090915/pro_ten_1.gif);}
    .pro10 li a:hover b {background:url(http://www.webdm.cn/images/20090915/pro_ten_1.gif) right top;}
    .pro10 li.current a:hover {color:#fff; background:url(http://www.webdm.cn/images/20090915/pro_ten_2.gif); cursor:default;}
    .pro10 li.current a:hover b {background:url(http://www.webdm.cn/images/20090915/pro_ten_2.gif) right top;}
    
    </style>
    </head>
    <body>
    <ul class="pro10">
    <li><a href="/"><b>网页代码站</b></a></li>
    <li><a href="http://www.webdm.cn"><b>最新更新</b></a></li>
    <li><a href="/"><b>Products</b></a></li>
    <li><a href="/"><b>网页特效</b></a></li>
    <li class="current"><a href="/"><b>Contact us</b></a></li>
    <li><a href="http://www.webdm.cn"><b>Search</b></a></li>
    </ul>
    </body>
    </html>
    <br>
    <p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!</p>
    

    代码来自:http://www.webdm.cn/webcode/6fc795f5-65e4-4928-9ef3-ca88deb83446.html

  • 相关阅读:
    4-12日 面向对象的组合和继承
    4-8日 递归和二分查找
    4-11 对象的交互 命名空间作用域
    [LeetCode]-algorithms-Reverse Integer
    [LeetCode]-algorithms-Longest Palindromic Substring
    [LeetCode]-algorithms-Median of Two Sorted Arrays
    [LeetCode]-algorithms-Longest Substring Without Repeating Characters
    [LeetCode]-algorithms-Add Two Numbers
    Java中创建String的两种方式
    Java中String为什么是不可变的
  • 原文地址:https://www.cnblogs.com/webdm/p/1961150.html
Copyright © 2011-2022 走看看