2

我尝试了各种不同的 jQuery autogrow/expand 文本区域插件,它们在演示页面上都运行良好,但是由于某种原因,每当我将它们实施到我现有的站点中时,它们的行为就很奇怪,这就是正在发生的事情:

效果很好,如果您手动输入文本并在每行后按回车键,但是,如果我复制并粘贴一大块文本,由于某种原因,它始终会在结尾处砍掉大约 30%,而且它只是被剪切了off,没有滚动条,只是切断。

即使我刷新页面(文本保留在那里)它仍然会切断它。我猜一些 JS/CSS 是冲突的,但我不知道它可能是什么!

4

1 回答 1

0
  1. Which plugins have you tried so far?
  2. If you use Firebug, try and monitor the textarea for changes. See what it does to the value and the height of the textarea
  3. Set the height of the textarea to 1000px and see if it can handle the 'copy/paste' and show you the whole thing.
于 2009-11-26T06:13:22.673 回答