<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 內聯表單 為`<form>`元素添加`.form-inline`類可使其內容左對齊并且表現為`inline-block`級別的控件。**只適用于視口(viewport)至少在 768px 寬度時(視口寬度再小的話就會使表單折疊)。** #### 可能需要手動設置寬度 在 Bootstrap 中,輸入框和單選/多選框控件默認被設置為`width: 100%;`寬度。在內聯表單,我們將這些元素的寬度設置為`width: auto;`,因此,多個控件可以排列在同一行。根據你的布局需求,可能需要一些額外的定制化組件。 #### 一定要添加`label`標簽 如果你沒有為每個輸入控件設置`label`標簽,屏幕閱讀器將無法正確識別。對于這些內聯表單,你可以通過為`label`設置`.sr-only`類將其隱藏。還有一些輔助技術提供label標簽的替代方案,比如`aria-label`、`aria-labelledby`或`title`屬性。如果這些都不存在,屏幕閱讀器可能會采取使用`placeholder`屬性,如果存在的話,使用占位符來替代其他的標記,但要注意,這種方法是不妥當的。 ## **實例1** ![](https://img.kancloud.cn/80/76/8076cf78437fdec403b58c8bf4d2d73b_847x102.png) ~~~html <form class="form-inline"> <div class="form-group"> <label for="exampleInputName2">Name</label> <input type="text" class="form-control" id="exampleInputName2" placeholder="Jane Doe"> </div> <div class="form-group"> <label for="exampleInputEmail2">Email</label> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="jane.doe@example.com"> </div> <button type="submit" class="btn btn-default">Send invitation</button> </form> ~~~ ## **實例2** ![](https://img.kancloud.cn/ad/12/ad1215591e319b50fc66f128b810821b_843x89.png) ~~~html <form class="form-inline"> <div class="form-group"> <label class="sr-only" for="exampleInputEmail3">Email address</label> <input type="email" class="form-control" id="exampleInputEmail3" placeholder="Email"> </div> <div class="form-group"> <label class="sr-only" for="exampleInputPassword3">Password</label> <input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password"> </div> <div class="checkbox"> <label> <input type="checkbox"> Remember me </label> </div> <button type="submit" class="btn btn-default">Sign in</button> </form> ~~~ ## **實例3** ![](https://img.kancloud.cn/a0/42/a0424088e38b75bf31881bb35b2e54ea_839x96.png) ~~~html <form class="form-inline"> <div class="form-group"> <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label> <div class="input-group"> <div class="input-group-addon">$</div> <input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount"> <div class="input-group-addon">.00</div> </div> </div> <button type="submit" class="btn btn-primary">Transfer cash</button> </form> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看