我目前正在尝试将它插入另一个框的右上角,但我无法将它放在右上角,而是这些框只是与单词重叠。
#box {
position: relative;
background-color: grey;
padding: 50px;
border: 1px solid black;
width: 30%;
height: 280px;
margin-top: 30px;
overflow: auto;
float: left;
margin-right: 10px;
}
.chicken {
border: 1px solid #000000 ;
background-color: #FD96DF;
position: absolute;
center: 80px;
}
.beef {
border: 1px solid #000000 ;
background-color: #C70620;
position: absolute;
center: 90px;
}
.Sushi {
border: 1px solid #000000;
background-color: #ECAE69;
position: absolute;
center: 85px;
}