So I'm having an issue trying to implement materializecss' checkbox with @Html.CheckBoxFor. If I input exactly:
<input type="checkbox" id="test5" />
<label for="test5">Red</label>
it works. But if I try this:
@Html.LabelFor(m => m.RememberMe, new { @class = "login-label" })
@Html.CheckBoxFor(m => m.RememberMe, new { @type = "checkbox" })
the checkbox disappears way off the page to the left (the style of the checkbox gets its left set to -99999).
Is there any other way I can implement CheckBoxFor that would make materialize cooperate?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…