我不知道這一點......幫助空白:NOWRAP正常,在IE
我有一個DIV叫「#ContentContainer」,它的寬度是100%,它需要的空白nowrap,所以它的內部擴展和崩潰將冒險超出窗口,並創建一個水平滾動。在擴展和收縮的div中,我有文本和圖像。在IE中,這些內部div有白色空間:nowrap應用於他們...我已經設置了白色空間爲正常,但IE不承認..任何人都可以幫忙嗎?
這裏CSS:
#ContentContainer {
position: relative;
height: 480px;
width: 100%;
margin: 10px 0px 0px 0px;
border: 1px solid blue;
white-space: nowrap;
}
.column {
position: relative;
white-space: normal;
width: 220px;
top: 0px;
border-left: 1px solid #999;
border-right: 1px solid #999;
height: 420px;
margin: 20px 30px 0px 0px;
*display: inline;
vertical-align: top;
}
和我的HTML:
<div id="#ContentContainer">
<div class="column">
Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap.
</div>
<div class="column">
Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap.
</div>
<div class="column">
Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap. Text that needs to have a white-space or normal. It needs to wrap.
</div>
</div>
有人嗎?
的東西我有同樣的問題,並沒有找到任何解決方案。不幸的是,很多人誤解了這個問題:它不是白色空間:nowrap;不起作用,但是它曾經爲所有後代設置_keeps_on_,似乎無法取消它(至少在IE8中)。 – 2013-06-28 17:16:15