Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过提交图像执行标准的选择加入表单。使用常规提交按钮时,脚本会正常执行。当使用图像作为按钮时,图像最初需要两次单击才能执行,然后再单击一次,除非重新加载页面。
我怀疑这可能是主题代码和选择加入表单代码之间的冲突,所以我将链接到一个可以查看表单、页面和源代码的实时示例。
选择加入表单在主要内容区域后淡入(滚动到底部 1-2 秒后)。
任何帮助将不胜感激。谢谢你。
您可以尝试避免使用图像并为按钮设置样式。
像这样:
<button style="background:url('your_image');height:100px;width:100px;"></button>