翡翠占位持有人没有出现在Textarea标签中

发布于 2025-01-31 20:03:42 字数 221 浏览 2 评论 0原文

我正在使用Jade,我想在文本中使用占位符,我将占位符标记与输入一样,但似乎不起作用,这是我的Textarea。

textarea(id="instructionsText" name="instructions_text", cols="60", rows="10" placeholder="Instructions for the survey (Optional)") 

I am using Jade and I want to use a placeholder in a textarea, I place the placeholder tag the same way that I'm doing with an input, but it doesn't seem to work, here's my textarea.

textarea(id="instructionsText" name="instructions_text", cols="60", rows="10" placeholder="Instructions for the survey (Optional)") 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

行至春深 2025-02-07 20:03:42

我发现这是正确的,问题在于我在文本标签之后有一个空格,我想翡翠将其转换为文本area的内容。这是一个问题,有助于我 html5 Textarea占位符

I found out that it was correct, the problem was that I have a whitespace after the textarea tag, I guess that Jade translate that whitespace as the content of the textarea. Here is the question that kind of helped me out HTML5 textarea placeholder not appearing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文