HTML <area> download Attribute
ဥပမာ
အသုံးပြုသူတစ်ဦး ဟိုက်ပါလင့်ခ်ကို နှိပ်သည့်အခါ ပစ်မှတ်သည် ဒေါင်းလုဒ်လုပ်မည်ဖြစ်ကြောင်း သတ်မှတ်ရန် ဒေါင်းလုဒ် attribute ကိုသုံးပါ-
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="info_about_the_sun.htm" download="sun">
<area shape="circle" coords="90,58,3" alt="Mercury" href="merglobe.gif" download="mercury">
<area shape="circle" coords="124,58,8" alt="Venus" href="information_about_the_planet_venus.txt" download="venus">
</map>
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အသုံးပြုသူတစ်ဦး ဟိုက် ပါလင့်ခ်ကို နှိပ်သည့်အခါ download
ပစ်မှတ် ( attribute တွင်ဖော်ပြထားသည့်ဖိုင် ) ကို ဒေါင်းလုဒ်လုပ်မည်ဖြစ်ကြောင်း attribute က သတ်မှတ်သည်။href
ရည်ညွှန်းချက် ၏ ရွေးချယ်နိုင်သောတန်ဖိုးသည် download
၎င်းကိုဒေါင်းလုဒ်လုပ်ပြီးနောက် ဖိုင်၏အမည်အသစ်ဖြစ်လိမ့်မည်။ ခွင့်ပြုထားသောတန်ဖိုးများအပေါ် ကန့်သတ်ချက်များမရှိပါ၊ ဘရောက်ဆာသည် မှန်ကန်သောဖိုင်ဆက်ဆက်ကို အလိုအလျောက်သိရှိပြီး ၎င်းကို ဖိုင် (.img၊ .pdf၊ .txt၊ .html စသည်ဖြင့်) တွင်ထည့်ပါမည်။
တန်ဖိုးကို ချန်လှပ်ထားလျှင် မူရင်းဖိုင်အမည်ကို အသုံးပြုသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
download | 14.0* | 18.0 | 20.0* | 10.1 | 15.0 |
* Chrome 65+ နှင့် Firefox သည် မူရင်းဒေါင်းလုဒ်လင့်ခ်များကိုသာ ပံ့ပိုးပေးသည်။
အထားအသို
<area download="filename">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
filename | Optional. Specifies the new filename for the downloaded file |
နောက်ထပ် ဥပမာများ
ဥပမာ
ဒေါင်းလုဒ်လုပ်ထားသော ဖိုင်အမည်အသစ်ဖြစ်မည့် ဒေါင်းလုဒ် attribute အတွက် တန်ဖိုးကို သတ်မှတ်ပါ ( information_about_the_sun.htm အစား sun.htm နှင့် အခြားအရာများ)
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="info_about_the_sun.htm" download="sun">
<area shape="circle" coords="90,58,3" alt="Mercury" href="merglobe.gif" download="mercury">
<area shape="circle" coords="124,58,8" alt="Venus" href="information_about_the_planet_venus.txt" download="venus">
</map>
❮ HTML <area> တဂ်