有代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<p class="item">this is test para</p>
<button >按钮</button>
</div>
<style>
.container {
flex-wrap: wrap;
background-color: azure;
width: 300px;
}
.item {
width: 150px;
height: 50px;
background-color: antiquewhite;
border: 1px solid black;
display: inline-block;
}
</style>
</body>
</html>
目前的效果如图所示:
现在如果想要让按钮是在容器的右边,而不是紧挨着<p>标签,请问应该如何做呢?