2013-04-22 46 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

相关问题