zoukankan      html  css  js  c++  java
  • CSS自适应宽度圆角按钮

    <style>
    a{background:url(http://5key.net/demo/liquid-css-menu/1.gif) left 0;  color:#fff; text-decoration:none; height:30px; float:left; cursor:hand; margin:0 5px 0 0;}
    #aa a:hover{background:url(http://5key.net/demo/liquid-css-menu/1.gif) left -30px;height:30px;}
    #aa a span{background:url(http://5key.net/demo/liquid-css-menu/1.gif) right 0;  padding:9px 8px 5px 0; margin:0 0 0 8px; float:left; height:16px;}
    #aa a:hover span{background:url(http://5key.net/demo/liquid-css-menu/1.gif) right -30px; color:#000;  padding:9px 8px 5px 0; margin:0 0 0 8px; height:16px;  }
    </style>
    <div id="aa">
    <h1><strong>CSS自适应宽度圆角按钮</strong></h1>
    <a href="#"><span>首页</span></a> <a href="#"><span>不是首页</span></a> <a href="#"><span>他也许是首页</span></a> <a href="#"><span>但他一定不是首页</span></a> <a href="#"><span>好了,就这样把。别扯了~</span></a>
    </div>

  • 相关阅读:
    安装lamp服务器
    Linux ssh登录命令
    一些替代Xshell的软件推荐
    字符串输入的几种方式
    Java数据库操作的一些注意
    模拟堆
    web安全基础第一天
    情报搜集
    kali中的postgres怎么连接
    LeetCode:Validate Binary Search Tree
  • 原文地址:https://www.cnblogs.com/yaojaa/p/1348092.html
Copyright © 2011-2022 走看看