当前位置:首页 > 网页特效 > 表单按钮 >

用CSS实现链接文字阴影效果

时间:2014-06-08 09:19 来源:互联网 作者:源码搜藏 收藏 推荐

运行代码 保存代码 复制代码 提示:您可以先修改部分代码再运行,保存代码功能在Firefox下无效。
  • 用CSS制作的阴影链接文字,很实用的效果哦!
  • <style type="text/css">  
    #nav {
    list-style: none;
    display: inline;
    }
    #nav li {
    display: inline;
    margin-right: 5px;
    float: left;
    height: 20px;
    width: 20px;
    }
    #nav a {
    color: #399;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    border: 1px solid #999;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    }
    #nav li a:hover {
    font-size: 24px;
    line-height: 30px;
    height: 30px;
    width: 30px;
    position: absolute;
    z-index: 10;
    margin: -5px 0 0 -5px;
    font-weight: bold;
    color: #CC66FF;
    border: 1px dotted #666666;
    background: #EEE;
    }
    </style>
由源码搜藏网整理,转载请注明出处https://www.codesocang.com/tx-biaodan/8558.html
下一篇:没有了

表单按钮下载排行

最新文章