HTML <summary> Tag
ဥပမာ
<summary> element ကိုအသုံးပြုခြင်း-
<details>
<summary>Epcot Center</summary>
<p>Epcot is a
theme park at Walt Disney World Resort featuring exciting attractions,
international pavilions, award-winning fireworks and seasonal special
events.</p>
</details>
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Tag သည် <details> ဒြပ်စင် <summary>
အတွက် မြင်နိုင်သော ခေါင်းစီးတစ်ခုကို သတ်မှတ်သည် ။ အသေးစိတ်အချက်အလက်များကို ကြည့်ရန်/ဝှက်ရန် ခေါင်းစီးကို နှိပ်နိုင်သည်။
မှတ်ချက်-<summary>
ဒြပ်စင်သည် <details> ဒြပ်စင်၏ ပထမဆုံး ကလေးဒြပ်စင် ဖြစ်သင့်သည် ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ဒြပ်စင်ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Element | |||||
---|---|---|---|---|---|
<summary> | 12.0 | 79.0 | 49.0 | 6.0 | 15.0 |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<summary>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<summary>
tag သည် HTML ရှိ Event Attributes ကိုလည်း ပံ့ပိုး ပေးပါသည် ။
နောက်ထပ် ဥပမာများ
ဥပမာ
<details> နှင့် <summary> ပုံစံပြုလုပ်ရန် CSS ကိုသုံးပါ-
<html>
<style>
details > summary {
padding: 4px;
width: 200px;
background-color: #eeeeee;
border: none;
box-shadow: 1px 1px 2px #bbbbbb;
cursor: pointer;
}
details > p {
background-color: #eeeeee;
padding: 4px;
margin: 0;
box-shadow: 1px 1px 2px #bbbbbb;
}
</style>
<body>
<details>
<summary>Epcot Center</summary>
<p>Epcot is a theme park at Walt Disney
World Resort featuring exciting attractions, international pavilions,
award-winning fireworks and seasonal special events.</p>
</details>
</body>
</html>
ဆက်စပ်စာမျက်နှာများ
HTML DOM ရည်ညွှန်း- အကျဉ်းချုပ် အရာဝတ္ထု
မူရင်း CSS ဆက်တင်များ
ဘရောက်ဆာအများစုသည် <summary>
အောက်ဖော်ပြပါ ပုံသေတန်ဖိုးများဖြင့် အစိတ်အပိုင်းကို ပြသလိမ့်မည်-
summary {
display: block;
}