HTML <colgroup> span အရာ
အသုံးပြုနည်းဥပဒေ
span
ကိစ္စချက် <colgroup> အရာ တစ်ခု အပေါ် အသုံးပြုသော စက္ခုပေါင်း ကို အသုံးပြုပါ။
Tip:If you need to define different attributes for a column within <colgroup>, use <col> ခွဲခ�ားသုံးပါ。
Example
Use the span attribute of <colgroup> to set the background color of the first two columns:
<table> <colgroup span="2" style="background:#B0C4DE"></colgroup> <tr> <th>ISBN</th> <th>Title</th> <th>Price</th> </tr> <tr> <td>3476896</td> <td>HTML စတင်ပြုလုပ်</td> <td>$53</td> </tr> <tr> <td>5869207</td> <td>CSS စတင်ပြုလုပ်</td> <td>$49</td> </tr> </table>
Syntax
<colgroup span="number">
attribute value
value | ဖော်ပြ |
---|---|
number | ခွဲခ�ားသုံးပါ လောက် သော စာရင်းအုပ် ကို စစ်ဆေးပါ |
ဘတ်ရှား ထောက်ပံ့
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ |