我已经为你解决了这个问题,让我知道。控件(文本框、按钮)使
width
290px
根据您的要求,您需要在同一宽度内。
.searchframe {
height: 80vh;
border: 2px solid yellow;
white-space: nowrap;
width: 290px;
overflow: auto;
}
.btnMenu {
color: #ffffff;
background: #2185D0;
}
.groupItemSearch {
padding-bottom: 10px;
border: 1px solid red;
display: inline-block;
}
<body>
<div class="searchframe">
<div class="groupItemSearch">
<a class="btnMenu">External Static pressure - inchAqua</a>
<div class="groupLeft">
<input type="text">
<label>ï½</label>
<input>
<label> inchAqua</label>
<button>Search </button>
</div>
</div>
</div>
</body>
.searchframe {
height: 80vh;
border: 2px solid yellow;
white-space: nowrap;
width: 290px;
overflow: auto;
display: flex;
flex-direction: column;
}
.btnMenu {
color: #ffffff;
background: #2185D0;
}
.groupItemSearch {
padding-bottom: 10px;
display: inline-block;
}
<html>
<head>
</head>
<body>
<div class="searchframe">
<div class="groupItemSearch"> <a class="btnMenu">External Static pressure - inchAqua</a>
<div class="groupLeft">
<input type="text">
<label>ï½</label>
<input>
<label> inchAqua</label>
<button>Search </button>
</div>
</div>
<div class="groupItemSearch"> <a class="btnMenu">External Static pressure - inchAqua</a>
<div class="groupLeft">
<input type="text">
<label>ï½</label>
<input>
<label> inchAqua</label>
<button>Search </button>
</div>
</div>
<div class="groupItemSearch"> <a class="btnMenu">External Static pressure - inchAqua</a>
<div class="groupLeft">
<input type="text">
<label>ï½</label>
<input>
<label> inchAqua</label>
<button>Search </button>
</div>
</div>
</div>
</body>
</html>