in English
Clearfix
Nekukurumidza uye nyore kujekesa zvakayangarara zviri mukati memudziyo nekuwedzera clearfix utility.
Zviri nyore kujekesa float
s nekuwedzera .clearfix
kune chinhu chemubereki . Inogonawo kushandiswa semusanganiswa.
<div class="clearfix">...</div>
// Mixin itself
@mixin clearfix() {
&::after {
display: block;
content: "";
clear: both;
}
}
// Usage as a mixin
.element {
@include clearfix;
}
Muenzaniso unotevera unoratidza kuti clearfix inogona kushandiswa sei. Pasina iyo clearfix iyo yekuputira div yaisatenderedza yakatenderedza mabhatani ayo aizokonzera akatyoka dhizaini.
<div class="bg-info clearfix">
<button type="button" class="btn btn-secondary float-left">Example Button floated left</button>
<button type="button" class="btn btn-secondary float-right">Example Button floated right</button>
</div>