1 2 3 4 5 6 7 8 | < div class = "form-group marb20 {% if login_form.errors.username %}errorput{% endif %}" > < label >用 户 名</ label > < input name = "username" id = "account_l" type = "text" placeholder = "手机号/邮箱" /> </ div > < div class = "form-group marb8 {% if login_form.errors.username %}errorput{% endif %}" > < label >密 码</ label > < input name = "password" id = "password_l" type = "password" placeholder = "请输入您的密码" /> </ div > |
代码按着老师说的来的,但是试了一下并没有红框focus的效果???