题解 | #定位 - absolute#

定位 - absolute

http://www.nowcoder.com/practice/4a7cd2e295604c5ca30380b61506208b

<html>
    <head>
        <meta charset=utf-8>
        <style type="text/css">
            * {
                margin: 0;
                padding: 0;
                padding-left:10px;
            }
            .outer {
                width: 100px;
                height: 100px;
                background-color:pink;
                 
            }
            .middle {
                width: 100px;
                height: 100px;
                background-color:yellow;
                position:absolute;
                 
            }
            .inner {
                width: 100px;
                height: 100px;
                background-color:lightblue;
                position:absolute;
                left:0px;
            }
        </style>
    </head>
    <body>
        <div class="outer">
            <div class="middle">
                <div class="inner">
                     
                </div>
            </div>
        </div>
    </body>
</html>
全部评论

相关推荐

鬼迹人途:你去投一投尚游游戏,服务器一面,第一个图算法,做完了给你一个策略题,你给出方案他就提出低概率问题,答不上当场给你挂
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务