我想在我的搜索栏旁边并排放置2个下拉菜单,但我只能将它们放在它下面。我希望有一个人可以帮助我。以下是我的代码
<div>
<div class="input-group">
<div class="icon-addon">
<input type="text" id="search" class="form-control"
placeholder='Type to filter the table...'>
<label style="z-index: 22" for="search" class="fa fa-search" rel="tooltip"
title="search"></label>
</div>
</div>
</div>
</div>
<select class="form-control" style="width: 105px;">
<option>Festpreis</option>
<option>Stundenbasis</option>
</select>
答案 0 :(得分:0)
继承人的代码:
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="utf-8">
<meta name="author" content="Vojtěch Matras">
<title>Admin Express Blogs&Magazines</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="col-2"><input type="text" id="search" class="form-control"
placeholder='Type to filter the table...'></div>
<div class="col-2"> <select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select> </div>
<div class="col-2"> <select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select> </div>
</div>
</div>
</body>
</html>
您可以检查小提琴:https://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards/调整浏览器窗口的大小以查看响应性