简体   繁体   English

我不知道如何更改表单在texarea字段中文本的流动方式?

[英]I don't know how to change the way text flows in a texarea field for a form?

I made a form, but and when the user enters information into it, the text is entered from left to right for the name field and the email field. 我制作了一个表单,但是当用户在其中输入信息时,名称字段和电子邮件字段从左到右输入文本。 However, when someone enters information into the comments field, the text is entered from right to left. 但是,当某人在注释字段中输入信息时,将从右到左输入文本。 Is there a piece of code or something I need to change, for information to be entered left to right like the other fields? 是否需要一段代码或需要更改的内容才能像其他字段一样从左到右输入信息? Below is a link to my form. 下面是我的表格的链接。 Thanks you! 谢谢!

http://hsc.unm.edu/admin/compliance/Feedback%20Form.html http://hsc.unm.edu/admin/compliance/Feedback%20Form.html

You have this CSS: 您有以下CSS:

.webform textarea {
width: 215px;
text-align: right;
}

Remove the text-align: right; 删除text-align: right; .

Just set the text align of the text area to left: 只需将文本区域的文本对齐设置为左:

text-align : left;

EDIT: or remove it. 编辑:或将其删除。

您应该应用text-align: left;

I checked out the source, and for some reason you have 我检查了出处,出于某种原因,

text-align: right;

as CSS for the input field. 作为输入字段的CSS。 Remove that line and it should work the way you wanted. 删除该行,它应该可以按照您想要的方式工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM