2013-04-22 66 views
0

如何當和disable the scroll bartextarea當內容超過?僅在Opera中存在問題。溢出不適用於Opera?

textarea樣子,

enter image description here

overflow:auto屬性是除歌劇所有瀏覽器上運行。

我的CSS會,

#message { 
    width: 99.5%; 
    height: 60px; 
    border: none; 
    overflow: auto; 
    resize: none; 
    outline: none; 
    border-color: #6495ED; 
    border-style: solid; 
    border-width: 1px; 


    } 

如何解決this.Good答案肯定是讚賞。

+0

你試過'溢出-Y:汽車; overflow-x:none'? – Morpheus 2013-04-22 15:11:44

+0

哪個版本的Opera?在ver中適合我。 12.12 – Adrift 2013-04-22 15:13:44

+0

@Morpheus試過並沒有工作。 – 2013-04-22 15:32:09

回答

1

試試這個

{ 
    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ 
    white-space: -pre-wrap;  /* Opera 4-6 */ 
    white-space: -o-pre-wrap; /* Opera 7 */ 
    white-space: pre-wrap;  /* css-3 */ 
    word-wrap: break-word;  /* Internet Explorer 5.5+ */ 
    word-break: break-all; 
    white-space: normal; 
} 
+0

@Kite Player是否有效? – inputError 2013-04-22 17:13:14

+0

感謝您的回覆......但沒有成功。 – 2013-04-23 06:58:31

相關問題