1
.page-setting-popup {
position: absolute;
background-color: tomato;
padding: 10px 10px 10px 0;
height: 120px;
display: flex;
flex-flow: row;
justify-content: space-between;
align-items: flex-start;
}
.setting-popup-controls {
display: flex;
flex-flow: row;
}
我有这样的代码在不同的地方。我不喜欢我应该几乎每块使用显示。我觉得如果我这样做一些课,我会很棒。css类架构显示
.flex {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-items: center;
}
或者它应该是这样的?
.flex {
display: flex;
}
.v-centered {
align-items:center;
}
.h-centered {
justify-content: center;
}
.stretch-between {
justify-content: space-between;
}
我认为第二个变体更加灵活。但我需要你的意见)
<div class="page-setting-popup">
<div class="setting-popup-icon"><span class="zmdi zmdi-time-restore"></span></div>
<div class="setting-popup-main"><span class="setting-header text-uppercase">Sync. frequency</span>
<div class="setting-popup-controls">
<input type="number" min="0"/>
<button type="submit">V</button>
<button>X</button>
</div>
</div>
也分享你的相关HTML代码。没有这个。我们无法帮助你。也......用你的代码来解释你想要达到的目标 –