jQuery 自动扩展文本区域表现得很奇怪
我尝试过各种不同的 jQuery 自动增长/扩展文本区域插件,它们在演示页面上都运行良好,但由于某种原因,每当我将它们实现到现有站点中时,它们的行为都非常奇怪,这就是正在发生的情况
:太好了,如果你手动输入文本并在每行后按回车键,但是,如果我复制并粘贴一大块文本,由于某种原因,它会始终将末尾砍掉约 30%,并且它会被简单地切断,没有滚动条,只是被切断。
即使我刷新页面(文本保留在那里),它仍然会被切断。我猜某些 JS/CSS 是冲突的,但我不知道它可能是什么!
I have tried various different jQuery autogrow/expand text area plugins, and they all work good and well on the demo page but for some reason whenever I implement them into my existing site, they act very strange, this is what is happening:
It works great, if you're manually typing in text and hitting enter after every line, however, if I copy and paste a large block of text in, for some reason it consistently chops about 30% off the end, and it's simply cut off, no scroll bar, just cut off.
Even if i refresh the page (with the text staying in there) it still cuts it off. I'm guessing some JS/CSS is conflicting but I have no clue what it could be!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)