有关css height:100%失效

 代码:

html:
<body>
    <div id = "wrap">
        <div id = "header">
            头部
        </div>
        <div id = "menu">
            目录
        </div>
        <div id = "content">
            <div class = "left">
                <div class = "left-top">

                </div>
                <div class = "left-bottom">

                </div>
            </div>
            <div class = "right">
                <div class = "right-top">

                </div>
                <div class = "right-bottom">

                </div>
            </div>
        </div>
        <div id = "footer">
            版权内容
        </div>
    </div>

</body>

css:
*{margin:0;padding:0;}
    body{height:100%;}
    #wrap
    {
        width:1580px;
        margin:0 auto;
    }
    #header
    {
        width:100%;
        height:100px;
        margin:10px inherit;
        background-color:blue;
    }
    #menu
    {
        width:100%;
        height:70px;
        margin:10px inherit;
        background-color:green;
    }
    #content
    {
        width:100%;
        height:300px;
        margin:10px inherit;
        background-color:red;
    }
    #footer
    {
        width:100%;
        height:30px;
        margin:10px inherit;
        background-color:gray;
    }
    .left
    {
        width:65%;
        height:100%;
        margin:5px 5px;
        background-color:#F1EA21;
        float:left;
    }

    提问:为什么.left里面的height:100%会失效?其父容器#content明明设置了height:300px
  求大神解答~~

http://www.weste.net/2014/4-28/96579.html

测试了没有问题啊,.left填充慢#content了。。

原因很简单,其父容器#content下面除了.left div还有与.left平级的div