HTML span Attribute
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
span
ရည်ညွှန်းချက်သည် ကော်လံတစ်ခု
<col>
သို့မဟုတ် <colgroup>
ဒြပ်စင်တစ်ခု၏ အတိုင်းအတာ ကို သတ်မှတ်သည်။
တွေပေါ့။
ရည်ညွှန်းချက်ကို အောက်ပါ span
ဒြပ်စင်များတွင် အသုံးပြုနိုင်ပါသည်။
ဒြပ်စင် | ဂုဏ်ရည် |
---|---|
<col> | ထွာ |
<colgroup> | ထွာ |
ဥပမာများ
Col ဥပမာ
ဤတွင်၊ ပထမကော်လံနှစ်ခုသည် အနီရောင်နောက်ခံအရောင်ရှိသင့်သည်-
<table>
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
Colgroup နမူနာ
<colgroup> span attribute ကို အသုံးပြု၍ ပထမကော်လံနှစ်ခု၏ နောက်ခံအရောင်ကို သတ်မှတ်ပါ-
<table>
<colgroup span="2" style="background:red"></colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
<tr>
<td>5869207</td>
<td>My first CSS</td>
<td>$49</td>
</tr>
</table>
Browser ပံ့ပိုးမှု
span
ရည်ညွှန်းချက်တွင် ဒြပ်စင်တစ်ခုစီအတွက် အောက်ပါဘရောက်ဆာ ပံ့ပိုးမှုပါရှိသည် ။
Element | |||||
---|---|---|---|---|---|
col | Yes | Yes | Yes | Yes | Yes |
colgroup | Yes | Yes | Yes | Yes | Yes |