html - 在引导文本区域中强制文本从最左端开始时遇到问题
问题描述
如果我不小心将光标放在文本区域的前面,它会从那里开始写,在开头留下一些我不想要的空格。我想强制它从最左边开始,就像在输入框中一样。这是代码和随附的屏幕截图以供参考:
<label>Post your query below!</label>
<textarea class="sidebar_area" id="sender_query" placeholder="Write your [enter image description here][1]query here! " rows="4" cols="23">
</textarea>
<button type="submit" class="send_button" id="send_button">Send</button>
解决方案
只要确保<textarea>
和</textarea>
标签之间没有空格
<textarea class="sidebar_area" id="sender_query" placeholder="Write your [enter image
description here][1]query here! " rows="4" cols="23"></textarea>
推荐阅读
- perl - 在从 spreadshit.pl 第 8 行提取数据的连接 (.) 或字符串中使用未初始化的值
- netsuite - Netsuite:如何从选项卡中获取字段值?
- google-cloud-platform - 有没有办法在 Google Cloud Platform 中安排 Cloud Shell 命令?
- database - Laravel 数据透视表插入数组
- swift - 如何快速将一个视图控制器值发送到另一个视图控制器表视图?
- sql - 诊断 DELETE 上的引用完整性错误的原因
- linux - 在 Windows bat 文件中运行 cygwin 命令
- docker - 如何列出 docker 容器中的所有目录和文件?
- swift - 在 swift 包管理器中为 API 调用编写单元测试
- python - 在调试模式下运行 Flask 应用程序不提供 IP 或调试器 PIN 或任何请求详细信息