<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: flex;
flex-direction: row;
}
.searchText{
flex-grow: 1;
}
</style>
</head>
<body>
<div class="container">
<input placeholder="请输入搜索内容" class="searchText" />
<button class="btn">搜索</button>
</div>
</body>
</html>
css 布局中flex布局中 两个盒子沾满 剩余的空间
最新推荐文章于 2024-05-15 20:29:00 发布