我有一个带有 onclick 事件的 php 上传按钮。直到最近,它还在 Firefox 67 中工作,但它在悬停时不会改变,并且不再可点击。但是相同的按钮在 Chrome 中没有问题。我将问题隔离到两个表单元素:textarea 和 checkbox。当我在提交按钮上方插入它们中的任何一个时,它不再起作用(光标不会改变并且按钮不再提交)。大约两周前,我用 php 测试了这个按钮,它工作得很好。现在它不再起作用了。整个页面代码如下:<div class="center_text_grid flex-item joinpage_text">Introductory sign-up page text goes here.<br></div><br><br><!-- ________________ --><form action="register.php" method="post" name='register' id='register'> <div><input type="hidden" id="datefield" name="datefield" value="Today"></div> <div class="center_text_grid flex-item mktg_text EMail_Pwd" style="padding-left:12.5%;"> <input type="text" class="signup_join" autofocus="autofocus" placeholder="Your email address" id="email_field" name="email_field" style="width:80%; font-size: 18px;" required></div> <div class="center_text_grid flex-item mktg_text EMail_Pwd" style="padding-left:12.5%;"><input type="text" class="signup_join" autofocus placeholder="First Name (optional)" id="firstname" name="firstname" style="width:80%;"></div> <div class="center_text_grid flex-item mktg_text EMail_Pwd" style="padding-left:12.5%;"> <input type="text" class="signup_join" autofocus placeholder="Last Name (optional)" id="lastname" name="lastname" style="width:80%;"></div><br><!-- THE SUBMIT BUTTON WORKS HERE WITH EVERYTHING BELOW COMMENTED OUT --> <textarea maxlength="1000" id="comments" name="comments" cols="3" rows="3" autofocus placeholder="Comments"></textarea><br><label class="container"> <span class="joinpage_checkbox">Add me to your email list</span> <input type="checkbox" id="ckbx" checked="checked" value="Yes"> <span class="checkmark"></span></label>两个大谜团是为什么它直到最近才起作用,为什么它在 Chrome 中起作用,而在 Firefox 中不起作用?
1 回答
- 1 回答
- 0 关注
- 133 浏览
添加回答
举报
0/150
提交
取消