单选按钮将文本置于单选按钮下方

大卫布里顿

我正在使用 Bootstrap v3.3.0,但我的单选按钮有问题。

问题是任何长文本都会将文本放在单选按钮下方,而不是仅在第一行下方换行。在宽屏显示器上全屏显示它看起来不错。但随着尺寸变小,它看起来很糟糕。我认为引导程序会自动为您自动换行。

我是否以错误的方式使用引导程序?

<div class="row">
    <div class="col-lg-12">
        <div class="form-group">
            <input id="Valid-Driver-License" name="residenceProof" type="radio" required value="#form.FLDL#" />
            <label for="Valid-Driver-License">A valid driver license or ID card with photo issued by any US state or territory (Florida driver license must indicate a Manatee County address)</label>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="form-group">
            <input id="Canadian-Driver-License" name="residenceProof" type="radio" required value="#form.Canadian#" />
            <label for="Canadian-Driver-License">A Canadian driver license or ID card </label>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="form-group">
            <input id="Valid-Passport" name="residenceProof" type="radio" required value="#form.Passport#" />
            <label for="Valid-Passport">A valid US or out-of-country passport</label>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="form-group">
            <input id="Power-Of-Attorney-Copy" name="residenceProof" type="radio" required  value="#form.POA#" />
            <label for="Power-Of-Attorney-Copy">If transaction is being completed by <a href="https://www.powerdms.com/public/MCTC/documents/1474142" target="_blank">Power of Attorney</a> a copy of the valid driver license, identification card or passport for both the applicant <font color="red">and</font> the person appointed power of attorney is required. <font color="red">If the Power of Attorney appoints a business/dealership alone or with an individual, the business/dealership must include a letter of authorization on their letterhead stating that the person who is signing by power of attorney on their behalf is authorized to do so.</font></label>
        </div>
    </div>
</div>
伊万S95

你可以尝试的一件事是把标签放在input里面label这样,文本将换行并在新行中继续,但第一个将始终保留在输入的一侧。

.example-2 {
  display: flex;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<div class="row">
  <div class="col-lg-12">
    <div class="form-group">
      <label for="Valid-Driver-License">
       <input id="Valid-Driver-License" name="residenceProof" type="radio" required value="#form.FLDL#" />
      A valid driver license or ID card with photo issued by any US state or territory (Florida driver license must indicate a Manatee County address)</label>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-12">
    <div class="form-group">
      <input id="Canadian-Driver-License" name="residenceProof" type="radio" required value="#form.Canadian#" />
      <label for="Canadian-Driver-License">A Canadian driver license or ID card </label>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-12">
    <div class="form-group">
      <input id="Valid-Passport" name="residenceProof" type="radio" required value="#form.Passport#" />
      <label for="Valid-Passport">A valid US or out-of-country passport</label>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-12">
    <div class="form-group">
      <label for="Power-Of-Attorney-Copy">
      <input id="Power-Of-Attorney-Copy" name="residenceProof" type="radio" required value="#form.POA#" />
      If transaction is being completed by <a href="https://www.powerdms.com/public/MCTC/documents/1474142" target="_blank">Power of Attorney</a> a copy of the valid driver license, identification card or passport for both the applicant <font color="red">and</font> the person appointed power of attorney is required. <font color="red">If the Power of Attorney appoints a business/dealership alone or with an individual, the business/dealership must include a letter of authorization on their letterhead stating that the person who is signing by power of attorney on their behalf is authorized to do so.</font></label>
    </div>
  </div>

</div>


<!-- New Example -->
<div class="row">
  <div class="col-lg-12">
    <div class="form-group example-2">
      <input id="Power-Of-Attorney-Copy" name="residenceProof" type="radio" required value="#form.POA#" />
      <label for="Power-Of-Attorney-Copy">
      If transaction is being completed by <a href="https://www.powerdms.com/public/MCTC/documents/1474142" target="_blank">Power of Attorney</a> a copy of the valid driver license, identification card or passport for both the applicant <font color="red">and</font> the person appointed power of attorney is required. <font color="red">If the Power of Attorney appoints a business/dealership alone or with an individual, the business/dealership must include a letter of authorization on their letterhead stating that the person who is signing by power of attorney on their behalf is authorized to do so.</font></label>
    </div>
  </div>
</div>

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

将选择名称置于单选按钮上方,使其闪亮

来自分类Dev

如何在单选按钮本身下方对齐单选按钮的文本

来自分类Dev

将文本与单选按钮的右侧对齐

来自分类Dev

情节提要板将文本置于按钮内图像下方

来自分类Dev

将单选按钮分组

来自分类Dev

标签下方的中央单选按钮?

来自分类Dev

单选按钮文本未对齐

来自分类Dev

标签文本重叠单选按钮

来自分类Dev

如果文本框值等于单选按钮值,单选按钮将激活

来自分类Dev

按钮单选

来自分类Dev

单选按钮

来自分类Dev

单选按钮组:获取所选单选按钮的文本

来自分类Dev

如果选中单选按钮,如何获取单选按钮的文本?

来自分类常见问题

Android:如何将单选按钮的文本设置为Integer?

来自分类Dev

如何将表单文本恰好放在单选按钮的前面

来自分类Dev

如何将单选按钮与左侧的文本对齐?

来自分类Dev

如何将文本放入单选按钮标签中?

来自分类Dev

空间不足时,将菜单选项置于“更多”按钮中

来自分类Dev

将属性添加到单选按钮列表的单选按钮

来自分类Dev

在单选组中将单选按钮选择为是必须启用文本视图&将单选按钮选择为否必须禁用android中的文本视图

来自分类Dev

从选中的单选按钮获取文本节点

来自分类Dev

如何使单选按钮文本也可单击?

来自分类Dev

单选按钮清除文本框

来自分类Dev

通过选择单选按钮使文本加粗

来自分类Dev

如何通过单选按钮更改文本的颜色?

来自分类Dev

android从文本右边设置单选按钮

来自分类Dev

根据来自xpath的文本查找单选按钮

来自分类Dev

通过选择单选按钮生成文本

来自分类Dev

显示仅带有文本的单选按钮

Related 相关文章

热门标签

归档