【问题标题】:How do I move the lower section to the right of the upper section?如何将下部移动到上部的右侧?
【发布时间】:2020-12-21 10:01:44
【问题描述】:

如何将下半部分移到上半部分的右侧? 我使用引导程序... 我是 Bootstrap 的新手。 我想要这个视图 => http://prntscr.com/ua4e4p

    <div class="form-row">
      <div class="form-group col-md-8">
        <img src="img/frame.svg" class="img-fluid" alt="Responsive image">
      </div>

      <div class="form-group col-md-4">
        <label for="inputState">Product</label>
        <select required name="proje_aciliyet" class="form-control">
          <option>SWA-71</option>
          <option>QAZ-89</option>
          <option>Acelesi Yok</option>
        </select>
      </div>
      
      <div class="form-group col-md-4 float-right">
        <label for="inputState">Urgent</label>
        <select required name="proje_aciliyet" class="form-control">
          <option>No</option>
          <option>Yes</option>
        </select>
      </div>
    </div>

【问题讨论】:

  • 你能提供和截图一样的代码吗?

标签: css forms twitter-bootstrap bootstrap-4


【解决方案1】:

在下面保持两个输入相同,您必须将其换成一列。

试试这个:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<div class="form-row">
      <div class="form-group col-md-8">
        <img src="https://dummyimage.com/725x250/e031e0/fff" class="img-fluid" alt="Responsive image">
      </div>
      
      <div class="form-group col-md-4 float-right">
        <label for="inputState">Product</label>
        <select required name="proje_aciliyet" class="form-control">
          <option>SWA-71</option>
          <option>QAZ-89</option>
          <option>Acelesi Yok</option>
        </select> 
     
        <label for="inputState">Urgent</label>
        <select required name="proje_aciliyet" class="form-control">
          <option>No</option>
          <option>Yes</option>
        </select>
      </div>
    </div>

【讨论】:

  • 如果对您有帮助,请不要忘记接受答案。 @BurakFırçasıgüzel
猜你喜欢
  • 1970-01-01
  • 2020-08-23
  • 2020-08-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-02
  • 2014-09-26
  • 2013-11-05
相关资源
最近更新 更多