Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 不同浏览器中texarea元素末尾的光标行为_Javascript_Html_Css_Cross Browser - Fatal编程技术网

Javascript 不同浏览器中texarea元素末尾的光标行为

Javascript 不同浏览器中texarea元素末尾的光标行为,javascript,html,css,cross-browser,Javascript,Html,Css,Cross Browser,我对textarea元素末尾的游标行为有以下问题。如果我输入一些用空格分隔的文本,然后只输入空格:在Chrome中,光标停在行尾,当输入其他符号时,会发生换行,在Firefox中,光标会与前一行的最后一个单词换行 问题是:从Chrome到Firefox有可能实现行为吗 我需要像Chrome这样的行为,但Firefox有自己的行为。在Firefox的上一个版本中,光标行为似乎是固定的。这个问题已经不是实际问题了可能是重复的

我对textarea元素末尾的游标行为有以下问题。如果我输入一些用空格分隔的文本,然后只输入空格:在Chrome中,光标停在行尾,当输入其他符号时,会发生换行,在Firefox中,光标会与前一行的最后一个单词换行

问题是:从Chrome到Firefox有可能实现行为吗


我需要像Chrome这样的行为,但Firefox有自己的行为。

在Firefox的上一个版本中,光标行为似乎是固定的。这个问题已经不是实际问题了

可能是重复的