阅读:9580回复:10
textarea的overflow:visible的问题!
根据msdn的手册说明:
visible Default. Content is not clipped and scroll bars are not added. 但是css标准上说: visible. The content flows out of the box. 详见: http://www.quirksmode.org/css/overflow.html 我倒觉得IE修改的overflow:visible蛮好的,很多网站都用到overflow:visible这个属性,为的就是textarea变得跟里面的文字区域一遍大。Firefox按照标准设计想达到这个功能可难了~ http://www.howtocreate.co.uk/wrongWithI ... visible%3B |
|
|
1楼#
发布于:2005-08-04 09:16
嘿嘿。DIV的overflow:auto不错
|
|
2楼#
发布于:2005-08-04 09:16
这到也是一个问题,但我最初不是这个意思。
把http://www.quirksmode.org/css/overflow.html在Firefox&IE分别打开,看如下这段: overflow: visible overflow: visible In this DIV with CLASS="test" we put a hideously long text that will overflow the box entirely because the DIV is fixed at 200 by 70 pixels. The question, of course, is: what happens to the text that doesn't fit into the box? This depends on the overflow declaration. Desired result: The content flows out of the box. Netscape 4: Incorrect, stretches box up until the content fits. Mozilla: Correct. Explorer 4-6 Windows: Incorrect, stretches box up until the content fits. Explorer 4 Mac: Incorrect, stretches box up until the content fits. Explorer 5 Mac: Correct Opera 5: Correct Opera 7: Incorrect, stretches box up until the content fits. Safari: Correct. 就很清楚区别在哪里了,文字也说明白了,^_^ xqstation:明白了 |
|
|
3楼#
发布于:2005-08-04 09:16
明白了
这个是因为Firefox把一串A识别成一个单词。 所以才这样。 我觉得这个不是什么问题。 |
|
4楼#
发布于:2005-08-04 09:16
|
|
|
5楼#
发布于:2005-08-04 09:16
|
|
|
6楼#
发布于:2005-08-04 09:16
不懂是什么意思
最好给个图什么的 |
|
7楼#
发布于:2005-08-04 09:16
希望能够在Firefox中也自适应大小,就像在IE中给textarea加上overflow:visible 样式得到的效果。不过这个问题现在已经不关心了,好像在Firefox中就是不行,不过div是可以的~
|
|
|
8楼#
发布于:2005-08-04 09:16
看不懂是什么意思。
textarea文本域。本来就是设计好的。改下边框就算了。你还想改什么? |
|
9楼#
发布于:2005-08-04 09:16
我想在Firefox中实现在IE中的textarea的overflow:visible的效果应该怎么写哪?我搞了好几天没搞成功~
|
|
|
10楼#
发布于:2005-08-04 09:16
随意篡改标准可不是件好事。这样会让各种浏览器的显示效果更难达到一致。如果IE一统天下的现状被不可逆转的改变。IE将成为伤脑筋的根源。
|
|