gpt4 book ai didi

html - 占位符文本未出现在文本区域中

转载 作者:可可西里 更新时间:2023-11-01 13:36:20 27 4
gpt4 key购买 nike

我知道这里有人可以帮助我。我已经查看了所有关于同一主题的论坛,但也许有人可以帮助我的具体案例。占位符没有出现在我的文本区域中。这是代码:

<fieldset class="contactFormDetails">
<input type="text" name="input-name" placeholder="Name" />
<input type="text" name="input-mail" placeholder="Subject" />
</fieldset>
<fieldset class="contactFormMessage">
<textarea name="input-message" placeholder="Type your message here"></textarea>
</fieldset>
<fieldset class="contactFormButtons">
<input type="submit" value="Send" />
</fieldset>

最佳答案

您使用的是什么浏览器?旧版本的 IE 不支持占位符属性。

在这里查看您的浏览器版本是否支持它:http://caniuse.com/input-placeholder

看看这里:https://stackoverflow.com/a/13281620/1846192对于一个 jQuery 插件,它在旧版 IE 中添加了对占位符文本的支持,并且在您提交表单时不会将占位符文本作为值提交。

关于html - 占位符文本未出现在文本区域中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16246752/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com