【问题标题】:rearrange bootstrap fields in small size以小尺寸重新排列引导字段
【发布时间】:2018-01-29 18:47:28
【问题描述】:

我使用 w3.css 使用下面的代码制作了一个表单,我希望(发送)按钮成为小屏幕和移动设备上的最后一个元素,我不知道该怎么做,任何人都可以提供帮助????

  input {
  	width: 300px;
  }
`    <!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

  
</head>
<body>

<div class="container-fluid">
  <h1>Push and Pull</h1>
  <p>Resize the browser window to see the effect.</p>
  <div class="row">
    <div class="col-sm-5" style="background-color:lavender;">
    <input type="text" placeholder="1">
    <input type="email" placeholder="2">
    <input type="text" placeholder="3">
    <input class="" type="submit" value="send">
    </div>
    <div class="col-sm-2" style="background-color:lavender;"></div>
    <div class="col-sm-5" style="background-color:lavenderblush;">
    <input type="text" placeholder="4">
    <input type="email" placeholder="5">
    <input type="text" placeholder="6">
    </div>
  </div>
</div>
    
</body>
</html>    `

【问题讨论】:

标签: html responsive-design w3.css


【解决方案1】:

&lt;input class="" type="submit" value="send"&gt; 放在第二列的末尾

<div class="col-sm-5" style="background-color:lavenderblush;">

【讨论】:

    猜你喜欢
    • 2019-08-26
    • 1970-01-01
    • 1970-01-01
    • 2021-10-21
    • 1970-01-01
    • 1970-01-01
    • 2016-09-13
    • 1970-01-01
    • 2012-04-22
    相关资源
    最近更新 更多