0

これが私のフィドルです

以下のcssを削除すると、すべて正常に表示されます。これがないと、フッターがページ全体を占有してすべてをブロックしてしまいます。

.image {
    position:relative;
    float: left;
}
.image .text {
    position:absolute;
    top:110px;
    left:55px;
    width: 200px;
    color: white;
    font-size: 14px;
}

問題は、そのコードがないと、オーバーレイ テキストを画像に表示できないことです。私は何を間違っていますか?ありがとう。

4

2 に答える 2

0

clear: bothフッターしてみてください。

#footer {
    margin: 0px auto;
    padding-bottom: 60px;
    width: 850px;
    background: #444;
    position: relative;
    text-align: center;
    clear: both;
}
于 2013-09-30T16:19:52.273 に答える
0

clear:bothに追加#footer;

#footer {
    margin: 0px auto;
    padding-bottom: 60px;
    width: 850px;
    background: #444;
    position: relative;
    text-align: center;
    clear:both;
}
于 2013-09-30T16:14:00.013 に答える