0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Bootstrap【個人用ドキュメント】

Last updated at Posted at 2022-03-16

offsetクラス

md以上の時、4列分右に動かす。

offset-md-4

表示/非表示

sm以上の時に表示する。それ以下は非表示。

.d-none .d-sm-block

overflow

.overflow-hiddens

Forms

インプット/チェックボックスの書き方

<form class="form">
    <div class="form-group">
        <!-- input要素のrequired属性は、その入力項目が必須属性であることをブラウザに知らせることができます。HTML5では、required属性を設定するだけでJavaScriptによる入力チェックがなくてもエラーメッセージを表示させることが可能です。 -->
        <input type="email" name="userEmail" class="form-control" placeholder="Email" required>
    </div>
    <div class="form-group">
        <input type="text" name="userFirstName" class="form-control" placeholder="First name" required>
    </div>
    <div class="form-group">
        <input type="text" name="userLastName" class="form-control" placeholder="Last name" required>
    </div>
    <div class="form-group">
        <input type="number" class="form-control" name="userFirstDeposit" aria-describedby="emailHelp" placeholder="Enter your first deposit" required>
    </div>
    <div class="form-group">
        <div class="form-check">
            <!-- チェックボックスをあらかじめチェックするにはchecked属性を使用します。 -->
            <input class="form-check-input" type="radio" name="userAccountType" id="userAccountType1" value="savings" checked required>
            <label class="form-check-label" for="userAccountType1">
                            Savings
            </label>
        </div>
        <div class="form-check">
           <input class="form-check-input" type="radio" name="userAccountType" id="userAccountType2" value="checkings" required>
           <label class="form-check-label" for="userAccountType2">
                            Checkings
           </label>
        </div>
    </div>
    <button type="submit" class="btn btn-primary col-12">Submit</button>
</form>

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?