zoukankan      html  css  js  c++  java
  • 紫罗兰水平CSS菜单

    演示效果截图

     紫罗兰水平CSS菜单

    用到的图片

     

    CSS代码

    <style type="text/css">
    body {margin:0;padding:0;font: bold 11px/1.5em Arial;}
    img {border: none;}
    #roScripts_m1 {float:left;100%;background:#F6ECFD;
    font-size:96%;line-height:1.5;border-bottom:3px solid #CD86F5;}
    #roScripts_m1 ul {margin:0;padding:100px 10px 0 25%;list-style:none;}
    #roScripts_m1 li {display:inline;margin:0;padding:0;}
    #roScripts_m1 a {float:left;background:url(left.gif) no-repeat left top;
    margin:0;padding:0 0 0 4px;text-decoration:none;}
    #roScripts_m1 a span {float:left;display:block;background:url(right.gif)
     no-repeat right top;padding:5px 25px 4px 25px;color:#fff;}
    /* Small hack for IE5-Mac \*/
    #roScripts_m1 a span {float:none;}
    /* End IE5-Mac hack */
    #roScripts_m1 a:hover span {color:#591333;}
    #roScripts_m1 a:hover {background-position:0% -42px;}
    #roScripts_m1 a:hover span {background-position:100% -42px;}
    #roScripts_m1 #current a {background-position:0% -42px;}
    #roScripts_m1 #current a span {background-position:100% -42px;color:#591333}
    .clear {clear:left}
    </style>

    HTML代码

    <div id="roScripts_m1">
       <ul>
    <li><a href="http://www.865171.cn"><span>Home</span></a></li>
    <li><a href="http://www.865171.cn"><span>Products</span></a></li>
    <li id="current"><a href="http://www.865171.cn"><span>www.865171.cn
    </span></a></li>
      </ul>
     <div class="clear"></div>
    </div>
  • 相关阅读:
    雅礼集训 Day6 T2 Equation 解题报告
    雅礼集训 Day6 T1 Merchant 解题报告
    雅礼集训 Day5 T3 题 解题报告
    雅礼集训 Day3 T2 u 解题报告
    雅礼集训 Day3 T2 v 解题报告
    set-begin
    set-constructors
    set-constructors
    list-unique
    list-unique
  • 原文地址:https://www.cnblogs.com/luluping/p/1542080.html
Copyright © 2011-2022 走看看