首页 > 其他 > 详细

div 重叠

时间:2015-02-23 21:11:57      阅读:364      评论:0      收藏:0      [点我收藏+]
<html>
    <head>
    <style>
        .first{
            width: 366px;height: 184px;
        //    position: relative;
            text-align:left;
            z-index:1000;
            display: none;
            color: red;
        }

        .second{
            width: 366px;height:184px;top:0px;
            position: absolute;
            color: blue;
        }

        body > div {
            position: relative;
        }
    </style>
    </head>
<body>
    <div >
        <div id="first" class="first">
            div content-1
        </div>
        <div id="second" class="second">
            div content
        </div>
    </div>
</body>

<script type="text/javascript" src="./js/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#second").bind("click",function(){
            $("#first").show();
        });
    });
</script>

</html>

 

div 重叠

原文:http://www.cnblogs.com/sodagreen/p/4298264.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!