我有以下 HTML 类:
<div class="image-changing">
<ion-icon name="ios-arrow-back" class="arrow-back"></ion-icon>
<ion-icon name="ios-arrow-back" class="arrow-back"></ion-icon>
<span class="circle"></span>
<ion-icon name="ios-arrow-forward" class="arrow-forward"></ion-icon>
<ion-icon name="ios-arrow-forward" class="arrow-forward"></ion-icon>
</div>
以及以下 CSS:
.arrow-back {
position: relative + 100px;
// margin-right: auto;
// align: center;
float:left;
font-size:60px;
color:white;
}
.arrow-forward {
left: 20%;
float:right;
font-size:60px;
color:white;
position: calc(100% - 1 em);
}
.image-changing {
width: 80%; margin: 0 auto;
}
有谁知道如何将五个组件居中对齐?