Html 文本区域光标未从头开始
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12529023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:56:30 来源:igfitidea点击:
Textarea cursor not starting from beginning
提问by user1495475
I have a <textarea>
in HTML. When I put cursor in it, it's not starting from the beginning, but is blinking in middle.
我<textarea>
在 HTML 中有一个。当我把光标放在里面时,它不是从头开始,而是在中间闪烁。
HTML
HTML
<TD width="21%">
<textarea class="txtarea" style="height:30px;" rows="3" name="Text" Id="Text" value=""> </textarea>
</TD>
CSS
CSS
.txtarea{
border-right: #646464 ;
border-top: #646464;
border-left: #646464;
border-bottom: #646464;
width:100%;
background: #ffffcc;
}
回答by Tom
<textarea class="txtarea" style="height:30px;" rows="3" name="Text" Id="Text" value=""> </textarea>
What you have is a space between <textarea>
and </textarea>
tags.
您拥有的是<textarea>
和</textarea>
标签之间的空间。