我有一个适用于除chrome以外的所有浏览器的表单,由于某种原因,chrome不会让我点击并输入表单字段,这里是表单:
<form action="registration.php" method="post">
<fieldset>
<p style="color:red; font-weight:bold; font-size:14px;"> <?php echo $errorMsg; ?> </p>
<label style="margin-bottom:10px" for="username">Username</label>
<input style="margin-bottom:10px"name="username" id="username" value="<?php print $username; ?>" type="text" />
<label style="margin-bottom:10px" for="email">Email</label>
<input style="margin-bottom:10px" name="email" id="email" value="<?php print $email; ?>" type="text" />
<label style="margin-bottom:10px" for="emailconf">Confirm Email</label>
<input style="margin-bottom:10px" name="emailconf" id="emailconf" value="<?php print $emailconf; ?>" type="text" />
<label style="margin-bottom:10px" for="paypal">PayPal Email</label>
<input style="margin-bottom:10px" name="paypal" id="paypal" value="<?php print $paypal; ?>" type="text" />
<label style="margin-bottom:10px" for="pass">Password</label>
<input style="margin-bottom:10px" type="password" value="<?php print $pass; ?>" name="pass" id="pass" onkeyup="passwordStrength(this.value)" />
<label style="margin-bottom:10px" for="passwordconf">Confirm Password</label>
<input style="margin-bottom:10px" name="passwordconf" id="passwordconf" value="<?php print $passwordconf; ?>" type="password" />
<div style="height:35; color:black;" id="passwordDescription">Password not entered</div>
<div id="passwordStrength" class="strength0"></div>
</fieldset>
<input style="float:right; margin-right:45%;" id="SaveAccount" type="submit" class="loginbtn" value="Submit Form"/>
</form>
php打印是这样的,如果有错误,他们不必再次重新输入信息,据我所知,可以忽略。有什么理由说为什么chrome会这样做?我绝不是形式大师,但我过去以同样的方式制作了一些,如果记忆有效,他们就会工作。
答案 0 :(得分:2)
快速修复:将position:relative
添加到#main_wrapper
正确修复:整个布局需要许多更改... 重新设计(table
,整行充满nbsp
?认真?)