douxian8883 2014-03-27 19:21
浏览 126
已采纳

鼠标悬停在文本上时显示链接[关闭]

i have a sign up option in the form.there are two types of users who can sign up 1. teacher and 2.student. when sign up option will be selected two options will come for teacher and student. i can do it by drop down list but i want it to be like those websites where options are showed when mouse pointer points the signup without click.please help me

  • 写回答

1条回答 默认 最新

  • douhui1957 2014-03-27 19:32
    关注
    <html>
    <head>
    <title>Drop Down Menu Test</title>
    </head>
    <style type="text/css">
    div{
        height: 30px;
        width: 100px;
        background-color: red;
        }
    
    #status{
        color: white;
        list-style-type: none;
        }
    
    div .menu{
        display: none;
        position: absolute;
        top: 35px;
        left :0px;
        width: 190px;
        background-color: red;
        border: 1px solid black;
        list-style-type: none;
        }
    
    div:hover .menu{
    display: inline-block;
    }
    
    
    </style>
    
    <body>
    
    <div id="main">
    <ul>
    <li id="status">Sign Up
        <ul class="menu">
            <li>Teacher</li>
            <li>Student</li>
        </ul>
    </li>
    </ul>
    </div>
    </body>
    </html>
    

    Are you looking to do something like this?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容