精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

Forms

Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.

Overview

Bootstrap’s form controls expand on our Rebooted form styles with classes. Use these classes to opt into their customized displays for a more consistent rendering across browsers and devices.

Be sure to use an appropriate type attribute on all inputs (e.g., email for email address or number for numerical information) to take advantage of newer input controls like email verification, number selection, and more.

Here’s a quick example to demonstrate Bootstrap’s form styles. Keep reading for documentation on required classes, form layout, and more.

We'll never share your email with anyone else.
<form>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1">
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>

Form text

Block-level or inline-level form text can be created using .form-text.

Associating form text with form controls

Form text should be explicitly associated with the form control it relates to using the aria-describedby attribute. This will ensure that assistive technologies—such as screen readers—will announce this form text when the user focuses or enters the control.

Form text below inputs can be styled with .form-text. If a block-level element will be used, a top margin is added for easy spacing from the inputs above.

Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
<label for="inputPassword5" class="form-label">Password</label>
<input type="password" id="inputPassword5" class="form-control" aria-describedby="passwordHelpBlock">
<div id="passwordHelpBlock" class="form-text">
Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
</div>

Inline text can use any typical inline HTML element (be it a <span>, <small>, or something else) with nothing more than the .form-text class.

Must be 8-20 characters long.
<div class="row g-3 align-items-center">
<div class="col-auto">
<label for="inputPassword6" class="col-form-label">Password</label>
</div>
<div class="col-auto">
<input type="password" id="inputPassword6" class="form-control" aria-describedby="passwordHelpInline">
</div>
<div class="col-auto">
<span id="passwordHelpInline" class="form-text">
Must be 8-20 characters long.
</span>
</div>
</div>

Disabled forms

Add the disabled boolean attribute on an input to prevent user interactions and make it appear lighter.

<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>

Add the disabled attribute to a <fieldset> to disable all the controls within. Browsers treat all native form controls (<input>, <select>, and <button> elements) inside a <fieldset disabled> as disabled, preventing both keyboard and mouse interactions on them.

However, if your form also includes custom button-like elements such as <a class="btn btn-*">...</a>, these will only be given a style of pointer-events: none, meaning they are still focusable and operable using the keyboard. In this case, you must manually modify these controls by adding tabindex="-1" to prevent them from receiving focus and aria-disabled="disabled" to signal their state to assistive technologies.

Disabled fieldset example
<form>
<fieldset disabled>
<legend>Disabled fieldset example</legend>
<div class="mb-3">
<label for="disabledTextInput" class="form-label">Disabled input</label>
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
</div>
<div class="mb-3">
<label for="disabledSelect" class="form-label">Disabled select menu</label>
<select id="disabledSelect" class="form-select">
  <option>Disabled select</option>
</select>
</div>
<div class="mb-3">
<div class="form-check">
  <input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
  <label class="form-check-label" for="disabledFieldsetCheck">
    Can't check this
  </label>
</div>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</fieldset>
</form>

Accessibility

Ensure that all form controls have an appropriate accessible name so that their purpose can be conveyed to users of assistive technologies. The simplest way to achieve this is to use a <label> element, or—in the case of buttons—to include sufficiently descriptive text as part of the <button>...</button> content.

For situations where it’s not possible to include a visible <label> or appropriate text content, there are alternative ways of still providing an accessible name, such as:

  • <label> elements hidden using the .visually-hidden class
  • Pointing to an existing element that can act as a label using aria-labelledby
  • Providing a title attribute
  • Explicitly setting the accessible name on an element using aria-label

If none of these are present, assistive technologies may resort to using the placeholder attribute as a fallback for the accessible name on <input> and <textarea> elements. The examples in this section provide a few suggested, case-specific approaches.

While using visually hidden content (.visually-hidden, aria-label, and even placeholder content, which disappears once a form field has content) will benefit assistive technology users, a lack of visible label text may still be problematic for certain users. Some form of visible label is generally the best approach, both for accessibility and usability.

Sass

Many form variables are set at a general level to be re-used and extended by individual form components. You’ll see these most often as $btn-input-* and $input-* variables.

Variables

$btn-input-* variables are shared global variables between our buttons and our form components. You’ll find these frequently reassigned as values to other component-specific variables.

$input-btn-padding-y:         .375rem;
$input-btn-padding-x:         .75rem;
$input-btn-font-family:       null;
$input-btn-font-size:         $font-size-base;
$input-btn-line-height:       $line-height-base;

$input-btn-focus-width:         .25rem;
$input-btn-focus-color-opacity: .25;
$input-btn-focus-color:         rgba($component-active-bg, $input-btn-focus-color-opacity);
$input-btn-focus-blur:          0;
$input-btn-focus-box-shadow:    0 0 $input-btn-focus-blur $input-btn-focus-width $input-btn-focus-color;

$input-btn-padding-y-sm:      .25rem;
$input-btn-padding-x-sm:      .5rem;
$input-btn-font-size-sm:      $font-size-sm;

$input-btn-padding-y-lg:      .5rem;
$input-btn-padding-x-lg:      1rem;
$input-btn-font-size-lg:      $font-size-lg;

$input-btn-border-width:      $border-width;
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          在线不卡中文字幕播放| 日韩一二三区视频| 欧美日韩国产首页在线观看| 欧美成人一级视频| 亚洲三级理论片| 蜜臀av一区二区三区| 成人av在线播放网址| 91麻豆精品国产综合久久久久久| 久久婷婷国产综合国色天香| 亚洲欧美偷拍另类a∨色屁股| 美女在线视频一区| 在线欧美一区二区| 国产三级欧美三级| 日韩黄色小视频| jlzzjlzz亚洲女人18| 久久综合久色欧美综合狠狠| 一区二区三区丝袜| jlzzjlzz亚洲日本少妇| 久久午夜羞羞影院免费观看| 亚洲成在线观看| 色婷婷久久一区二区三区麻豆| 久久精子c满五个校花| 日本成人在线看| 欧美日韩免费观看一区三区| 国产精品不卡一区二区三区| 国产乱码精品一区二区三区av| 制服丝袜亚洲播放| 亚洲一区二区三区四区五区中文| 成人av午夜影院| 中文字幕av一区 二区| 国产精品一级片在线观看| 6080国产精品一区二区| 午夜日韩在线观看| 欧洲在线/亚洲| 亚洲午夜久久久久| 欧美日韩一区在线观看| 亚洲夂夂婷婷色拍ww47| 色综合激情五月| 综合久久久久久久| 99视频有精品| 国产精品成人网| 色88888久久久久久影院野外| 欧美亚洲国产一区二区三区va| jlzzjlzz亚洲日本少妇| 91麻豆精品国产| 亚洲欧洲日产国码二区| 日本不卡免费在线视频| 成人午夜视频福利| 91精品在线观看入口| 综合久久给合久久狠狠狠97色| 日韩中文字幕一区二区三区| av欧美精品.com| 精品国产123| 国产成人亚洲精品青草天美| 日韩一级免费观看| 国产一区二区三区在线观看精品| 久久精品水蜜桃av综合天堂| 成人黄色在线看| 一级精品视频在线观看宜春院 | 日韩欧美国产一区二区三区| 久草这里只有精品视频| 久久久久久一级片| 99国内精品久久| 亚洲va欧美va人人爽午夜| 日韩视频国产视频| 成人深夜在线观看| 一区二区三区四区视频精品免费| 制服丝袜在线91| 国产精品1区2区3区在线观看| 亚洲图片你懂的| 欧美精品一级二级三级| 国产麻豆9l精品三级站| 亚洲女同一区二区| 欧美精品久久久久久久多人混战 | 国产日产欧美精品一区二区三区| 91网站黄www| 麻豆精品国产91久久久久久| 欧美国产精品一区二区三区| 欧洲av一区二区嗯嗯嗯啊| 国产在线不卡视频| 亚洲国产成人av网| 久久精品一级爱片| 欧美日韩在线播放三区四区| 国产精品乡下勾搭老头1| 亚洲一区二区三区四区中文字幕| 久久久精品欧美丰满| 欧美视频三区在线播放| 国产iv一区二区三区| 日韩精品每日更新| 亚洲欧美另类小说| www成人在线观看| 欧美日本一区二区| 51精品国自产在线| 天天色图综合网| 精品三级在线看| 麻豆国产精品官网| 亚洲国产高清在线| 色婷婷国产精品| 爽爽淫人综合网网站| 精品国产伦一区二区三区观看方式 | 在线中文字幕不卡| 婷婷丁香久久五月婷婷| 69堂精品视频| 国产毛片精品国产一区二区三区| 国产精品视频九色porn| 欧洲一区在线观看| 麻豆成人久久精品二区三区红 | 亚洲韩国精品一区| 日韩欧美激情在线| 成人黄页毛片网站| 亚洲图片欧美一区| 久久综合久久综合亚洲| 色老汉一区二区三区| 毛片av一区二区| 国产精品福利一区| 91精品免费在线观看| 丁香激情综合国产| 日韩黄色小视频| 国产精品久久久久婷婷| 欧美图区在线视频| 国产成人精品免费网站| 一区二区三区国产豹纹内裤在线 | 一区在线观看视频| 欧美精品v日韩精品v韩国精品v| 懂色av噜噜一区二区三区av| 亚洲综合图片区| 欧美高清在线精品一区| 91精品黄色片免费大全| 色婷婷亚洲一区二区三区| 免费成人深夜小野草| 亚洲欧美日韩国产成人精品影院| www国产精品av| 在线不卡一区二区| 99久久精品免费精品国产| 蜜臀av在线播放一区二区三区| 亚洲免费在线观看视频| 精品福利av导航| 日韩一级成人av| 欧美日韩国产不卡| 日本高清视频一区二区| 岛国精品一区二区| 精品一区二区av| 美女视频一区二区三区| 婷婷成人激情在线网| 亚洲美女精品一区| 中文字幕一区二区三中文字幕| 欧美精品一区视频| 精品国产伦一区二区三区观看体验| 欧美人牲a欧美精品| 欧洲亚洲精品在线| 91高清视频免费看| 色婷婷久久99综合精品jk白丝 | 亚洲妇熟xx妇色黄| 天堂资源在线中文精品| 亚洲国产乱码最新视频 | 成人影视亚洲图片在线| 国产精品亚洲视频| 国产mv日韩mv欧美| av在线不卡免费看| 97se亚洲国产综合在线| 91麻豆精品在线观看| 色综合久久中文综合久久牛| 色老汉av一区二区三区| 在线观看免费一区| 欧美精品国产精品| 日韩欧美成人激情| 精品国产乱码久久久久久久久| 2020日本不卡一区二区视频| 国产亚洲va综合人人澡精品| 日本一区二区三区在线不卡| 中文字幕成人网| 亚洲最快最全在线视频| 午夜伊人狠狠久久| 欧美aaaaaa午夜精品| 国产精品一区二区x88av| 成人avav在线| 欧美高清视频在线高清观看mv色露露十八| 欧美日韩一区三区四区| 精品999久久久| 亚洲欧洲另类国产综合| 天天影视色香欲综合网老头| 国内精品不卡在线| 一本到一区二区三区| 日韩丝袜美女视频| 国产视频一区不卡| 亚洲制服丝袜av| 国产一区二区三区精品欧美日韩一区二区三区 | 综合久久久久久| 七七婷婷婷婷精品国产| av激情综合网| 日韩欧美一区在线| 亚洲欧美在线视频| 免费成人在线网站| 日本二三区不卡| 欧美精品一区二| 夜夜精品视频一区二区| 国产iv一区二区三区| 日韩色视频在线观看| 综合电影一区二区三区| 国模一区二区三区白浆|