zoukankan      html  css  js  c++  java
  • div居中鼠标悬浮显示下拉列表

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style type="text/css">
    #apDiv1 {
        position: absolute;
        
        width: 100%;
        height: 50px;
        z-index: 1;
        background-color:#F00;
        
    }
    #apDiv2 {
        position: relative;
        margin:auto;
        width:960px;
        height: 50;
        z-index: 2;
        background-color:#3F6
    }
    .apDivx {
        position: relative;
        float:left;
        width: 99px;
        height: 50px;
        z-index: 3;
        background-color:#FF0;
        overflow:hidden;
        
    }
    .apDivy {
        position: relative;
        float:left;
        width: 99px;
        height: 50px;
        z-index: 3;
        background-color:#FF0;
        
        
    }
    #apDiv4 {
        position: absolute;
        
        top: 50px;
        width: 200px;
        height: 91px;
        z-index: 2;
        background-color:#F3C
    }
    </style>
    </head>
    
    <body>
    <div id="apDiv1">
    
    
        <div id="apDiv2">
            <div id="apDiv3" class="apDivx" onmouseover="this.className='apDivy'"  onmouseout="this.className='apDivx'">
            首页
                    <div id="apDiv4">
                战争<br>
                剧情<br>
                爱情<br>
                   </div>
            </div>
            <div id="apDiv3" class="apDivx" onmouseover="this.className='apDivy'"  onmouseout="this.className='apDivx'">
            电影
                    <div id="apDiv4">
                速度与激情7<br>
                复仇者联盟2<br>
                左耳<br>
                   </div>
            </div>
    
    
    
        </div>
    </div>
    
    </body>
    </html>
  • 相关阅读:
    java通过dom读写xml文件
    SWT
    Eclipse RCP学习资料
    Integration Guide
    一个Linux命令,黑客帝国
    GET和POST两种基本请求方法的区别
    贫血模式-AnemicDomainModel
    Synchronized锁在Spring事务管理下,为啥还线程不安全?
    redis 集群配置、启动
    redis cluster集群
  • 原文地址:https://www.cnblogs.com/lk-kk/p/4489131.html
Copyright © 2011-2022 走看看