HTML <output> Tag
ဥပမာ
တွက်ချက်မှုတစ်ခုလုပ်ဆောင်ပြီး <output> element တွင် ရလဒ်ကိုပြသသည်-
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" value="50">
+<input type="number" id="b" value="25">
=<output name="x" for="a b"></output>
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<output>
တဂ်ကို တွက်ချက်မှုတစ်ခု၏ ရလဒ်ကို ကိုယ်စားပြုရန် (ဇာတ်ညွှန်းတစ်ခုမှ လုပ်ဆောင်သည့်အရာကဲ့သို့) ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ဒြပ်စင်ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Element | |||||
---|---|---|---|---|---|
<output> | 10.0 | 13.0 | 4.0 | 5.1 | 11.0 |
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
for | element_id | Specifies the relationship between the result of the calculation, and the elements used in the calculation |
form | form_id | Specifies which form the output element belongs to |
name | name | Specifies a name for the output element |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<output>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<output>
tag သည် HTML ရှိ Event Attributes များကိုလည်း ပံ့ပိုး ပေးပါသည် ။
ဆက်စပ်စာမျက်နှာများ
HTML DOM ရည်ညွှန်း- Output Object
မူရင်း CSS ဆက်တင်များ
ဘရောက်ဆာအများစုသည် <output>
အောက်ဖော်ပြပါ ပုံသေတန်ဖိုးများဖြင့် အစိတ်အပိုင်းကို ပြသလိမ့်မည်-
output {
display: inline;
}