Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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/1/typescript/9.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
如何在html输入的左上角设置书写光标_Html_Typescript_Input_Alignment - Fatal编程技术网

如何在html输入的左上角设置书写光标

如何在html输入的左上角设置书写光标,html,typescript,input,alignment,Html,Typescript,Input,Alignment,我在html中使用输入标记,我希望输入框的高度更大。我把它设为200像素。 我的代码是: <input type="text" class="form-control" name="description" placeholder="Enter description" [(ngModel)]="description" style="height:200px" > 它起作用了,但占位符句子和书写光标从中间开始,如上图所示。 如何在html输入的左上角设置书写光标 我尝试了

我在html中使用输入标记,我希望输入框的高度更大。我把它设为200像素。 我的代码是:

<input type="text" class="form-control" name="description" placeholder="Enter description" 
[(ngModel)]="description" style="height:200px" >

它起作用了,但占位符句子和书写光标从中间开始,如上图所示。 如何在html输入的左上角设置书写光标
我尝试了这个“垂直对齐:文本顶部”,但它不起作用!

您刚刚使输入框“更大”(实际上它的高度更高)但是它仍然只有一个文本行!如果你想有一个更大的文本区域,你应该使用…,然后你可以使用
属性来决定你想要它有多大。

你刚刚把输入框做得“更大”(实际上给了它更多的高度)但是它仍然只有一行文字!如果你想有一个更大的文字区域,你应该使用…,然后你可以使用
属性来决定你想要它有多大。

输入是单行的。如果你想多行文字使用textarea元素。或者content元素是单行的。如果你想多行文字使用textarea ele或内容编辑div