ColumnGroup span attribute
Definition and usage
span
Set or return the value of the span attribute of the column group.
<colgroup> span attribute Define the number of columns that the <colgroup> element should span.
Tip:If you need to <colgroup> In the column specification of different properties, use Column object。
See also:
HTML အစီရင်ခံစာ:HTML <colgroup> လက်တင်
Example
Example 1
Set the background color of the first two columns to red:
document.getElementById("myColgroup").span = "2"; document.getElementById("myColgroup").style.backgroundColor = "red";
Example 2
Return the number of columns that the <colgroup> element should span:
var x = document.getElementById("myColgroup").span;
Syntax
Return span attribute:
columngroupObject.span
set formMethod attribute:
columngroupObject.span = number
အခြေခံ သတင်း
အတ္ထုပတ္တိ | ဖော်ပြ |
---|---|
number | အသုံးပြုလုပ်သူ အခွင့်ပြု <colgroup> အရာ ကို လွှတ်တတ် ပြီး အသုံးပြုလုပ်သူ အခွင့်ပြု ကို ကြည့်ရှုရမည် |
နည်းပါးစွာ
ပြန်လည်သတင်း | အသုံးပြုလုပ်သူ အခွင့်ပြု <colgroup> အရာ ကို လွှတ်တတ် ပြီး အသုံးပြုလုပ်သူ အခွင့်ပြု ကို ကြည့်ရှုရမည် |
---|
ဘရော့ဗား အထောက်အပံ့
ခလီ | အိပ်ချ် | ဖက်ဝါး | ဆိုဖ် | အိပ်ချ် |
---|---|---|---|---|
ခလီ | အိပ်ချ် | ဖက်ဝါး | ဆိုဖ် | အိပ်ချ် |
ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ |
ပတ်သက်တဲ့ စာမေးသတင်း
HTML အစီရင်ခံစာ:HTML <colgroup> span သတင်း