我用的less
,并试图让过去的输入有一个边距 10px
。 这里是我有什么,但它不工作,并在最后输入不应用下边距。 任何想法,为什么?
input {
margin-bottom: 0px;
&:last-child {
margin-bottom: 10px;
}
}
和HTML
<form id="auth-form">
<input id="ember367" class="ember-view ember-text-field" placeholder="Email" type="email" name="email">
<input id="ember368" class="ember-view ember-text-field" placeholder="Password" type="password" name="password">
<div class="clear"></div>
<a class="pull-left forgot-password">Forgot password?</a>
<button class="pull-right" data-ember-action="1" type="button">Sign In</button>
</form>