在第7.3.3部分中,带有class="form_control"的所有输入字段都嵌套在带有class="field_with_errors" 应该是红色的的div中。但是这是我得到了什么。
custom.scss包括:
#error_explanation {
color: red;
ul {
color: red;
margin: 0 0 30px 0;
}
}
.field_with_errors {
@extend .has-error;
.form-control {
color: $state-danger-text;
}
}正如您从屏幕截图 #error_explanation中看到的那样,.field_with_errors工作得很好。它会有什么问题?
链接到Heroku:https://daytonaraceway.herokuapp.com/signup
谢谢
发布于 2017-10-27 08:47:01
html模板的代码中有一个错误,因此将输入字段class: 'form_control'更改为class: 'form-control'解决了这个问题。
https://stackoverflow.com/questions/46933223
复制相似问题