重新排列小尺寸的引导字段

时间:2018-01-28 14:44:10

标签: html responsive-design w3.css

我使用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>    `
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

<input class="" type="submit" value="send">放在第二列的末尾

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