翡翠占位持有人没有出现在Textarea标签中
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这是正确的,问题在于我在文本标签之后有一个空格,我想翡翠将其转换为文本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