• 用滑动门制作导航(一个图片三种效果)


    首先ps制作如图所示的图片

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>滑动门制作导航</title>
    <style type="text/css">
    #menu ul{
     font-family:Arial, Helvetica, sans-serif;
     font-size:14px;
     padding:0 0 0 8px;
     margin:0 auto;
     list-style:none;
     height:35px;
     white-space:normal;
     }
    #menu ul li{
     float:left;
     margin:0 2px;
     }
    #menu ul li a{
     display:block;
     float:left;
     line-height:35px;
     text-decoration:none;
     color:#666;
     padding:0 0 0 14px;
     background:url(bjt.gif);
     overflow:hidden;
    }
    #menu ul li a span{
     display:block;
     padding:0 14px 0 0;
     background:url(bjt.gif) no-repeat right top;
     overflow:hidden;
     }
    #menu ul li a:hover{
     color:#fff;
     background:url(bjt.gif) no-repeat left center;
     }
    #menu ul li a:hover span{
     background:url(bjt.gif) no-repeat right center;
     }
    #menu ul li.current a{
     color:#fff;
     background:url(bjt.gif) no-repeat left bottom;
     
     }
    #menu ul li.current a span{
     background:url(bjt.gif) no-repeat right bottom;
    }
    #menu ul li.current a:hover{
     background:url(bjt.gif) no-repeat left bottom;
     cursor:default;
    }
    #menu ul li.current a:hover span{
     background:url(bjt.gif) no-repeat right bottom;}
    </style>
    </head>

    <body>
    <div id="menu">
    <ul>
        <li><a href="#"><span>Home</span></a></li>
         <li><a href="#"><span>Contact</span></a></li>
         <li><a href="#"><span>Web Dev</span></a></li>
        <li><a href="#"><span>Web Design</span></a></li>
         <li class="current"><a href="#"><span>Map</span></a></li>
         </ul>
    </div>
    </body>
    </html>

  • 相关阅读:
    在通达信里制作自己的指数
    Android Studio实现代码混淆
    python 安装anaconda, numpy, pandas, matplotlib 等
    阿里云服务(一) OSS
    阿里云存储OSS之九大使用技巧
    用云存储和CDN轻松搞定网站图片
    阿里云开放服务oss的api
    'htmlentities(): charset `utf8' not supported, assuming utf-8'
    TP自动生成模块目录
    TP框架中APP_SUB_DOMAIN_DEPLOY什么意思?
  • 原文地址:https://www.cnblogs.com/weixiao/p/2205595.html
Copyright © 2020-2023  润新知