当textarea禁用时,然后不显示textarea中的所有文本 [英] when textarea disable then not showing all the text in textarea

查看:95
本文介绍了当textarea禁用时,然后不显示textarea中的所有文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个textarea,我在其中键入一个长文本..并在其中应用了css ..并在css overflow:auto中。当我禁用textarea..Then不能看到所有的数据,所以我得到滚动bar..but(因为滚动条禁用)..plz给出一个解决方案,这...

解决方案

这是预期的行为。



可能的替代方案是使用 readonly textarea而不是禁用一个。这也使文本非常易读,因为禁用的textarea难以阅读。


I have a textarea ,and I type a long text in it ..and applied css in it ..and in css overflow : auto. So I get scroll bar..but when I disable the textarea..Then cannot see all the data (because the scroll bar is disable ) ..plz give a solution for this...

解决方案

That''s the expected behavior.

Possible alternative is to have a readonly textarea instead of disabled one. This also makes the text quite readable as disabled textarea is difficult to read.


这篇关于当textarea禁用时,然后不显示textarea中的所有文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆