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?

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

报告相同问题?

悬赏问题

  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入