Css 引导复选框问题
在我发疯之前,谁能帮帮我?该复选框实际上是如下所示的l形,您可以单击单词Accept旁边的灰色区域来打开和关闭该复选框 我只希望复选框显示在左侧,标签文本显示在右侧 表格Css 引导复选框问题,css,html,twitter-bootstrap,checkbox,Css,Html,Twitter Bootstrap,Checkbox,在我发疯之前,谁能帮帮我?该复选框实际上是如下所示的l形,您可以单击单词Accept旁边的灰色区域来打开和关闭该复选框 我只希望复选框显示在左侧,标签文本显示在右侧 表格 @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @id = "contact-form", role = "form" })) { @Html.AntiForgeryToken() @Html.ValidationSum
@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @id = "contact-form", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary("", new { @class = "text-danger" })
<fieldset>
<div class="form-div-5">
<label>
@Html.DropDownListFor(model => model.TitleId, TitleModel.TitleList)
</label>
</div>
<div class="form-div-5">
<label>
@Html.DropDownListFor(model => model.SexId, SexModel.SexList)
</label>
</div>
<div class="form-div-5">
<label>
@Html.TextBoxFor(m => m.Forename, new { @placeholder = "Forename *", @type = "text", required = "required" })
</label>
</div>
<div class="form-div-5">
<label>
@Html.TextBoxFor(m => m.Surname, new { @placeholder = "Surname *", @type = "text", required = "required" })
</label>
</div>
<div class="form-div-5">
<label>
@Html.TextBoxFor(m => m.Email, new { @placeholder = "Email Address *", @type = "email", required = "required" })
</label>
</div>
<div class="form-div-5">
<label>
@Html.TextBoxFor(m => m.UserName, new { @placeholder = "Username *", @type = "text", @pattern = "[a-zA-Z0-9]{6,}", @title = "Your username must have no spaces or special characters and must be at least 6 characters long.", required = "required" })
</label>
</div>
<div class="form-div-5">
<label>
@Html.PasswordFor(m => m.Password, new { @placeholder = "Password *", @type = "password", required = "required" })
</label>
</div>
<div class="form-div-5">
<label>
@Html.PasswordFor(m => m.ConfirmPassword, new { @placeholder = "Confirm Password *", @type = "password", required = "required" })
</label>
</div>
<div class="form-div-5">
<label class="checkbox inline no_indent">
<input type="checkbox" id="inlineCheckbox1" value="option1"> Accept terms and conditions?
</label>
</div>
<div class="button-wrapper">
<input type="submit" class="button" value="Register" /> <input type="reset" value="Reset" name="MFReset" class="button"><span>* Required Fields</span>
</div>
</fieldset>
}
当然不会这么难
请,请,帮助:-)你能提供一个吗?不幸的是,从来没有做过。没有时间像现在这样:)事实上,引导可能对你更容易。只需将html和css粘贴到适当的框中,然后点击save。然后与我们共享URL。因此,贡献者更有可能投入时间来帮助您。
#contact-form div {
overflow: hidden;
}
#contact-form fieldset {
position: relative;
z-index: 10;
overflow: hidden;
padding: 0;
width: 100%;
border: none;
}
contact-form label .checkbox {
color:#15221E;
height:40px;
text-align:left;
width:324px
}
#contact-form select {
display: block !important;
margin-bottom: 2px;
width: 100%;
border: 1px solid #000;
background: #e1e3e2;
color: #acacac;
font-size: 13px;
line-height: 20px !important;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
}
#contact-form select option {
padding-bottom: 3px;
}
#contact-form label {
position: relative;
display: block;
float: left;
margin: 0;
padding: 0;
min-height: 60px;
width: 100%;
}
#contact-form .message {
display: block !important;
min-height: 251px;
width: 100%;
}
#contact-form input,
#contact-form textarea {
-webkit-box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.32);
-moz-box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.32);
box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.32);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
margin: 0;
padding: 10px 10px 7px;
width: 100%;
outline: none;
border: none;
background: #e1e3e2;
color: #acacac;
font-size: 13px;
line-height: 20px !important;
font-family: Arial, Helvetica, sans-serif;
}
#contact-form input {
height: 37px;
}
#contact-form input:focus,
#contact-form textarea:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#contact-form .area .error {
float: none;
}
#contact-form textarea {
overflow: auto;
width: 100%;
height: 287px;
resize: none;
}
#contact-form .success {
position: absolute;
top: 4px;
left: 0;
z-index: 20;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
display: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 14px 10px;
width: 100%;
border: 1px solid #000;
background: #e5412a;
color: #ffffff;
text-align: center;
text-transform: none;
font-size: 18px;
font-family: Arial, Helvetica, sans-serif;
line-height: 22px;
}
#contact-form .error,
#contact-form .empty {
position: absolute;
bottom: 1px;
left: 2px;
display: none;
overflow: hidden;
padding: 5px 4px 0px 0;
width: 100%;
color: #f00;
text-transform: none;
font-size: 11px;
line-height: 1.27em;
font-family: Arial, Helvetica, sans-serif;
}
#contact-form .message .error,
#contact-form .message .empty {
bottom: 5px;
}
.checkbox {
display: inline-block;
cursor: pointer;
font-size: 13px;
margin-right:40px; line-height:37px;
}
input[type=checkbox] {
/*display:none;*/
}
.checkbox:before {
content: "";
display: inline-block;
width: 37px;
height: 37px;
vertical-align:middle;
background: #e1e3e2;
color: #acacac;
text-align: center;
box-shadow: inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8);
border-radius: 3px;
}
input[type=checkbox]:checked + .checkbox:before {
content: "\2713";
text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
font-size: 15px;
}
.checkbox.inline.no_indent,
.checkbox.inline.no_indent+.checkbox.inline.no_indent {
margin-left: 0;
margin-right: 10px;
}
.checkbox.inline.no_indent:last-child {
margin-right: 0px;
}