这种(按钮相对框)直接采用相对定位即可,
<style>
.context .text1{
background-color: pink;
width: 400px;
height: 400px;
}
.context .btn{
position: relative;
top: -5px;
}
</style>
<div class="context">
<textarea class="text1">
</textarea>
<button class="btn">按钮</button>
</div>