လုပ်နည်း - နောက်နှင့် ယခင်ခလုတ်များ
CSS ဖြင့် "နောက်တစ်ခု" နှင့် "ယခင်" ခလုတ်များကို ဖန်တီးနည်းကို လေ့လာပါ။
နောက်နှင့် ယခင်ခလုတ်များ
Next နှင့် ယခင် ခလုတ်များ ဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ
ဥပမာ
<a href="#" class="previous">« Previous</a>
<a
href="#" class="next">Next »</a>
<a href="#" class="previous round">‹</a>
<a href="#" class="next
round">›</a>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
a {
text-decoration: none;
display: inline-block;
padding: 8px 16px;
}
a:hover {
background-color: #ddd;
color: black;
}
.previous {
background-color: #f1f1f1;
color: black;
}
.next {
background-color: #04AA6D;
color: white;
}
.round {
border-radius: 50%;
}