အစုံအဝှမ်း စကေးလိုက်ခြင်း ဘာသာပြန်ပေးသည်
CSS ကို အသုံးပြု၍ အစုံအဝှမ်း အချက်အလက် စကေးလိုက်ခြင်း ဘာသာပြန်ပေးသည်
Features | Basic | Pro |
---|---|---|
Sample text | ||
Sample text | ||
Sample text | ||
Sample text | ||
Sample text |
အချက်အလက် အစုံအဝှမ်း စကေးလိုက်ခြင်း
ပထမပုံ - HTML ထပ်ပေါင်းသည်
<!-- ဗီယက်နီးရှား အကြီးအကဲ အကြောင်းအရာ --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <table> <tr> <th style="width:50%">Features</th> <th>Basic</th> <th>Pro</th> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-remove"></i></td> <td><i class="fa fa-check"></i></td> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-check"></i></td> <td><i class="fa fa-check"></i></td> </tr> </table>
ဒုတိယပုံ - CSS ထပ်ပေါင်းသည်
/* အချက်အလက် စကေးလိုက် အချက် */ table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } /* အချက်အလက် စကေးလိုက် အချက် */ th, td { text-align: center; padding: 16px; } th:first-child, td:first-child { text-align: left; } /* ဗီယက်နီးရှား စကေးလိုက် အချက် */ tr:nth-child(even) { background-color: #f2f2f2 } .fa-check { color: green; } .fa-remove { color: red; }