Formの線を消したいです。
今、
のようになっています。
このformタグをhtmlで使った時に出てくる線(赤矢印で示したもの)を消したいです。
HTMLには
{% load staticfiles %} <html lang="ja"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="{% static 'bootflat/css/bootflat.min.css' %}"> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> </head> <body> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title text-center">ログイン</h3> </div> {% if form.errors %} <div class="alert alert-danger" role="alert"> <p>入力いただいたメールアドレスの会員登録が無いか、パスワードが間違っています</p> </div> {% endif %} <div class="container"> <form action="{% url 'login' %}" method="post" role="form"> {% csrf_token %} <div class="form-group"> <label>ユーザーネーム</label> <input id="id_username" name="username" type="text" value="" minlength="5" maxlength="12" placeholder="ユーザーネーム" class="form-control"/> </div> <div class="form-group"> <label>パスワード</label> <input id="id_password" name="password" type="password" value="" minlength="8" maxlength="12" placeholder="パスワード" class="form-control"/> </div> <button type="submit" class="btn btn-primary btn-lg">ログイン</button> <input name="next" type="hidden" value="{{ next }}"/> </form> </div> </div> </body> </html>
のように書きました。
Formタグを使わなければいいのではと思ったのですが、そうするとユーザーネーム・パスワードの値を次に送れませんよね?
線を消すのはどうすればできるのでしょうか?
回答1件
あなたの回答
tips
プレビュー