我在让我的按钮对齐时遇到问题。这是他们要做的事情:
这就是我希望他们做的事情:
这是我的代码:
@using (Html.BeginForm("Logon2", "Account", FormMethod.Post))
{
<div>
<fieldset>
<legend>Login</legend>
<div class="editor-label">
@Html.LabelFor(m => m.UserName)
</div>
<div class="editor-field focus">
@Html.TextBoxFor(m => m.UserName, new { @class = "GenericTextBox", onkeyup = "enableLogonButton()" })
@Html.ValidationMessageFor(m => m.UserName)
</div>
<div class="editor-label">
@Html.LabelFor(m => m.Password)
</div>
<div class="editor-field">
@Html.PasswordFor(m => m.Password, new { @class = "GenericPasswordBox", onkeyup = "enableLogonButton()" })
@Html.ValidationMessageFor(m => m.Password)
</div>
<br/>
<p>
<input type="submit" disabled="disabled" value="Log On" onclick="DisableSubmitButton()"/>
<script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=HWXeUzAbOxyxKnb28ueDib8UFmw5ek2tyWQ6mXXt6Q06AQAlQrAtpBz"></script>
</p>
<p>
If you need to retrieve your username @Html.ActionLink("click here.", "ForgotUsername", "Account")<br/>
If you need to reset your password @Html.ActionLink("click here.", "ForgotPassword", "Account")
</p>
</fieldset>
</div>
}
我什至不知道如何让他们即使彼此出现。
有什么建议么?