CSS overflow:visible屬性允許呈現元素 框外的內容。但是,Firefox使用透明的 背景渲染盒子溢出的內容,從而可以看到它下面的內容。例如: -如何使CSS溢出可見呈現不透明元素
<div style="background:red;height:30px;"> I want this to have<br> an opaque background. </div> <div style="background:white"> So that it does not show what is below. </div>
是否有做第一個div的所有內容與 不透明的背景被渲染的一種方式?
我已經嘗試過了,但一塊的第一個div的(即第二行)仍然在Firefox的透明背景下呈現在第二個div的頂部,而在IE中,第一個div呈現在第二個之上,沒有任何重疊。 – 2010-11-24 19:42:23
是的,按照這jsfiddle:http://jsfiddle.net/tchalvakspam/JUndB/它不起作用(鉻22)。 – Kzqai 2012-10-17 18:41:05