<style type="text/css">
.flex {
display: flex;
justify-content: space-between;
}
.flex div {
display: block;
width: 100%;
height: 300px;
line-height: 300px;
text-align: center;
border: 1px solid #000;
}
</style>
<div class="flex">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>