• 灰色玻璃效果水平CSS菜单


    演示效果截图

     灰色玻璃效果水平CSS菜单

    用到的图片

     

    CSS代码

    /* CSS Document */
    .rhm1{
    	450px;
    	height:64px;
    	margin:0 auto;
    	background:url(rhm1_bg.gif) repeat-x;		
    }
    .rhm1-left{
    	background:url(rhm1_l.gif) no-repeat;
    	15px;
    	height:64px;
    	float:left;
    }
    .rhm1-right{
    	background:url(rhm1_r.gif) no-repeat;
    	15px;
    	height:64px;
    	float:right;
    }
    .rhm1-bg{
    	background:url(rhm1_bg.gif) repeat-x;
    	height:64px;
    }
    .rhm1-bg ul{
    	list-style:none;
    	margin:0 auto;
    }
    .rhm1-bg li{
    	float:left;
    	list-style:none;
    }
    .rhm1-bg li a{
    	float:left;
    	display:block;
    	color:#555;
    	text-decoration:none;
    	font:12px 'Lucida Sans', sans-serif;
    	font-weight:bold;
    	padding:0 0 0 18px;
    	height:64px;
    	line-height:40px;
    	text-align:center;
    	cursor:pointer;	
    }
    .rhm1-bg li a span{
    	float:left;
    	display:block;
    	padding:0 32px 0 18px;
    }
    .rhm1-bg li.current a{
    	color:#fff;
    	background:url(rhm1_hover_l.gif) no-repeat left 5px;
    }
    .rhm1-bg li.current a span{
    	color:#fff;
    	background:url(rhm1_hover_r.gif) no-repeat right 5px;
    }
    .rhm1-bg li a:hover{
    	color:#fff;
    	background:url(rhm1_hover_l.gif) no-repeat left 5px;
    }
    .rhm1-bg li a:hover span{
    	color:#fff;
    	background:url(rhm1_hover_r.gif) no-repeat right 5px;
    }

    HTML代码

    <h4 align="center">www.865171.cn</h4>
    <div class="rhm1">
    <div class="rhm1-right"></div>
    <div class="rhm1-left"></div>
    <div class="rhm1-bg">
    <ul>
    <li class="current">
    <a href="http://www.865171.cn"><span>www.865171.cn</span></a></li>
    <li><a href="http://www.865171.cn"><span>About Us</span></a></li>
    </ul>
    </div>
    </div>
  • 相关阅读:
    jQuery邮箱验证
    查看图片前进后退效果
    jQuery实现全选与反选
    jQuery在p前后添加节点
    jQuery中的fadeIn、fadeOut、fadeTo的应用
    jQuery中图片隐藏效果的所有方法
    jQuery中animate的应用(图片自动移动)
    jQuery图片复制
    N!具体数值有多少位数字
    顺序队列的初始化,建立,插入,查找,删除。
  • 原文地址:https://www.cnblogs.com/luluping/p/1542075.html
Copyright © 2020-2023  润新知