플렉스 랩 사용 wrap-reverse 속성 플렉스 항목을 역순으로 래핑하는 값입니다.
예시
다음 코드를 실행하여 wrap-reverse를 구현할 수 있습니다. 가치
<!DOCTYPE html>
<html>
<head>
<style>
.mycontainer {
display: flex;
background-color: #D35400;
flex-wrap: wrap-reverse;
}
.mycontainer > div {
background-color: white;
text-align: center;
line-height: 40px;
font-size: 25px;
width: 100px;
margin: 5px;
}
</style>
</head>
<body>
<h1>Quiz</h1>
<div class = "mycontainer">
<div>Ans1</div>
<div>Ans2</div>
<div>Ans3</div>
<div>Ans4</div>
<div>Ans5</div>
<div>Ans6</div>
<div>Ans7</div>
<div>Ans8</div>
<div>Ans9</div>
</div>
</body>
</html>