CSS滑动门横向菜单栏

效果如下:

               huadong

实现方法:利用一下两张图片:导航                 滑动

 

 

前台代码:

 <div id="nagivation">
            <ul >
                <li ><a href="mainbooks.aspx"><b>首页</b></a></li>
                <li ><a href ="bookstoretop.aspx?topid=1"><b>文学</b></a></li>
                <li ><a  href ="bookstoretop.aspx?topid=2"><b>小说</b></a></li>
                <li ><a  href ="bookstoretop.aspx?topid=3"><b>艺术</b></a></li>
                <li ><a  href ="bookstoretop.aspx?topid=4"><b>管理</b></a></li>
                <li ><a  href ="bookstoretop.aspx?topid=5"><b>考试</b></a></li>
                <li ><a  href ="bookstoretop.aspx?topid=6"><b>工具书</b></a></li>
                <li ><a href ="bookstoretop.aspx?topid=7"><b>科技</b></a></li>
            </ul>
        </div>

 

 

css:

  #nagivation
        {
            width: 1180px;
            margin-right: auto;
            margin-left: auto;
            height: 28px;
            background-image: url('wangyeimg/daohang.jpg');
            display: block;
        }
        #nagivation ul
        {
            margin: 0px;
            display: block;
            height: 28px;
            padding-left: 8px;
        }
        #nagivation ul li
        {
            display: block;
            float: left;
       
            height: 28px;
            padding-top: 5px;
        }
        #nagivation ul li a
        {
            padding: 5px 0px 0px 14px;
            text-decoration : none;
            color : White;
              height: 30px;
        }
          #nagivation ul li a b
          {
            padding: 0px 14px 0px 0px;
              height: 28px;
        }
            #nagivation ul li a:hover
        {
            background-image: url('wangyeimg/huadong.jpg');
            background-position: right top;
                  
        }
        #nagivation ul li a:hover
        {
            background-image: url('wangyeimg/huadong.jpg');
            color :Red ;
           
        }

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值