gpt4 book ai didi

html css 提交按钮

转载 作者:太空宇宙 更新时间:2023-11-04 03:34:30 25 4
gpt4 key购买 nike

我在 stacked over flow 上休假了几件事,似乎无法弄清楚如何让这条简单的线工作

<a class="lp-element lp-pom-button" id="lp-pom-button-25"><span class="label" style="margin-top: -10px;">Get Notified!</span></a>

它应该是一个提交按钮,每当我把它改成这个时

<a class="lp-element lp-pom-button" id="lp-pom-button-25" type="submit" name="submit"><span class="label" style="margin-top: -10px;">Get Notified!</span></a>

它仍然不提交到 php 表单。

非常感谢所有帮助。您可以在下面的页面上查看它,以了解我在做什么

keyinventory[dot]com

最佳答案

你应该使用 <button type="submit"><input type="submit">如果您想提交表单,请改为元素。我不认为没有 javascript 就可以使用普通链接来提交表单。

一个使用您现有代码的更完整的示例是:
<button type="submit" class="lp-element lp-pom-button" id="lp-pom-button-25" name="submit"><span class="label" style="margin-top: -10px;">Get Notified!</span></button>

关于html css 提交按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25755470/

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