css可見溢出內容如何具有非透明背景,以便隱藏下面的內容?css可見溢出內容如何具有非透明背景,以便隱藏下面的內容?
<div class="coverer-container">
<div class="coverer">
<p>I want this to have an opaque background.</p>
</div>
</div>
<div class="coveree">
<p>So you can not see this text.</p>
</div>
.coverer-container{
position:relative;
height:0;
width:0;
overflow:visible;
}
.coverer{
position:absolute;
height:300px;
width:300px;
}
哈!是的,我有多少錢。我認爲這太簡單了,甚至嘗試:S,謝謝! – 0xor1 2013-03-04 09:32:58
他說不透明的背景,不是白色。編輯:哦,那麼。剛纔看到他添加了一條評論。 – 2013-03-04 09:33:03
@RaulGogo不透明=任何顏色。他們可以改變他們的需求。 – 2013-03-04 09:34:55