gpt4 book ai didi

CSS 悬停放大
  • 并移动文本位置
  • 转载 作者:太空宇宙 更新时间:2023-11-04 00:06:36 25 4
    gpt4 key购买 nike

    这是我设法做到的..

    http://jsfiddle.net/pns2050/gAZPs/3/

    #navigation ul li {
    text-decoration: none;
    list-style:none;
    text-align:center;
    float:left;
    width:80px;
    height:30px;
    margin-left:10px;
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
    background-image:url(../images/nav.jpg);
    box-shadow: 0px 2px 5px 2px #91948d;

    }

    #navigation ul li a {
    margin-top:5px;
    text-decoration: none;
    color:white;
    font-weight:bold;
    width:100%;
    height:100%;
    display:block;
    }

    #navigation ul li:hover
    {
    height:33px;
    }

    #navigation ul li a:hover {
    margin-top: 8px;

    }

    我遇到的问题是,如果我将鼠标悬停在“框”的顶部,文本将返回到其原始位置。我已将 [ul li a] 设置为 height:100% 但我没有明白为什么它不起作用..

    任何帮助将不胜感激,谢谢

    最佳答案

    只是改变

     #navigation ul li a:hover {
    margin-top: 9px;

    }

    #navigation ul li:hover a {
    margin-top: 9px;

    }

    关于CSS 悬停放大 <li> 并移动文本位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14647503/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com