HTML <button> အချက်အလက်
定义和用法
<button>
标签定义可点击的按钮。
တွင် <button>
အကွက်အတွင်း၌ မသုံးနိုင်သော စကားလုံး (နှင့် <i>、<b>、<strong>、<br>、<img> စသည်များ) ကို ထည့်သွင့်နိုင်ပါသည်။ ဤသည် အသုံးပြု <input>
အကွက်ကို ဖွင့်ပြီး မဖြစ်နိုင်သော အချက်အလက်များ!
အကြောင်းအရာနှုတ်ချက်အရာကို အသုံးပြုရမည် <button>
အရာ type အချက်အလက်ဘရပ်စ်ဘရပ်စ်ကို အသိအမှတ်ပြုရမည်
အကြောင်းအရာနှုတ်ချက်အရာကို အပြောင်းအလဲပြုရန် CSS ကို အသုံးပြုပါ၊ အောက်ပါ အချက်အလက်ကို ကြည့်ပါ သို့မဟုတ် ကမ္ဘာ့ပြည့်ပြည့်စာကြောင်း CSS နှုတ်ချက်အရာ စာကြောင်း.
အချက်အလက်
<button>
အချက်အလက် <input type="button">
နှင့် နောက်<button>
နှင့် </button>
အချက်အလက်အချို့
အုပ်ချုပ်သော အချက်အလက်
နှုတ်ချက်အရာကို အသုံးပြုရမည် type အချက်အလက်。 "button"
၊ အခြား ဘရပ်စ်ဘရပ်စ် ဘက်တွင် (W3C အချက်အလက်များ ပါ) အခြား အချက်အလက် "submit"
.
အခြားအချက်အလက်
HTML DOM ပြည့်ပြည့်အချက်အလက်Button အရာ
CSS စာကြောင်းနှုတ်ချက်အရာ၏ အပြောင်းအလဲ
အချက်အလက်
နှုတ်ချက်အရာကို သတ်မှတ်ရမည်
<button type="button">ကျွန်ုပ်ကို စိတ်တွေ့ပါ</button>
အကြောင်းအရာအောက်ပါအချက်အလက်များကို ပြင်ဆင်ရမည်
အချက်အလက်
အချက်အလက် | ပြင်ဆင် | ဖော်ပြ |
---|---|---|
autofocus | autofocus | နှုတ်ချက်အရာကို စားပုံစံအရ ပြင်ဆင်ရမည် |
disabled | disabled | နှုတ်ချက်အရာကို အသုံးမမှုနိုင်စေရမည် |
form | form_id | နှုတ်ချက်အရာကို ကိုယ်စားပြုသော ပေါင်းစပ်ထားသောအချက်အလက် |
formaction | URL |
ပေါင်းစပ်ထားသောအချက်အလက်ကို ပေးပို့ရမည် type="submit" မှာသာ အသုံးပြုသည် |
formenctype |
|
ပေါင်းစပ်ထားသောအချက်အလက်ကို ပေါင်းစပ်ရမည် type="submit" မှာသာ အသုံးပြုသည် |
formmethod |
|
ပေါင်းစပ်ထားသောအချက်အလက်ကို တိုက်ရိုက်ပို့ရမည် type="submit" မှာသာ အသုံးပြုသည် |
formnovalidate | formnovalidate |
ပေါင်းစပ်ထားသောအချက်အလက်ကို ကျသုံးသင့်သည် type="submit" မှာသာ အသုံးပြုသည် |
formtarget |
|
ပေါင်းစပ်ထားသောပုံစံကို ပြင်ဆင်ရမည် type="submit" မှာသာ အသုံးပြုသည် |
name | အမည် | နှုတ်ချက်အမည်ကိုချဲ့ရမည် |
popovertarget | element_id | လိုင်းစားသူအရာများကိုချဲ့ရမည် |
popovertargetaction |
|
ဘရောက်လား စစ်ဆေးသော အခြေအနေ ကို သတ်မှတ်သည် |
type |
|
ဘရောက်လား အမျိုးအစား ကို သတ်မှတ်သည် |
value | အခြေအနေ | ဘရောက်လား အစားထိုးခြင်း ကို အဆိုပါ ဘရောက်လား ကို သတ်မှတ်သည် |
အခြေအနေ
<button>
လက္ခဏာ HTML တွင် အမြန်မြန် အခြေအနေ.
အခြေအနေ
<button>
လက္ခဏာ HTML တွင် ဖြစ်ပေါ်စေသော အခြေအနေ.
မူကြမ်း CSS စီစဥ်ချက်
အမှတ်အသားမရှိ
ဘရောက်လား အချက်အလက်
ဘရောက်လား 2
ဘရောက်လား ကူညီပေးသည် CSS ကို
!DOCTYPE html <html> <head> <style> .button { border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; } .button1 {background-color: #4CAF50;} /* အေးမြစ်ရောင် */ .button2 {background-color: #008CBA;} /* ဂုံးရောင် */ </style> </head> <body> <button class="button button1">အေးမြစ်ရောင်</button> <button class="button button2">ဂုံးရောင်</button> </body> </html>
ဘရောက်လား 2
ဘရောက်လား ခြင်း ကူညီပေးသည် CSS ကို ဘရောက်လား နှင့် ပတ်သက်၍ ဘရောက်လား နှင့် ပတ်သက်၍ ဘရောက်လား ကို စီစဥ်ကြောင်း (နှစ်ခုကြား ပတ်သက်၍ ဘရောက်လား ကို ပြုပြင်ကြောင်း)
!DOCTYPE html <html> <head> <style> .button { border: none; color: white; padding: 16px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; transition-duration: 0.4s; cursor: pointer; } .button1 { background-color: white; color: black; border: 2px solid #4CAF50; } .button1:hover { background-color: #4CAF50; color: white; } .button2 { background-color: white; color: black; border: 2px solid #008CBA; } .button2:hover { background-color: #008CBA; color: white; } </style> </head> <body> <button class="button button1">အေးမြစ်ရောင်</button> <button class="button button2">ဂုံးရောင်</button> </body> </html>
ဘရောက်လား ခြင်း ကူညီပေးသည်
Chrome | Edge | Firefox | ဆာဖား | အိုပီယာ |
---|---|---|---|---|
Chrome | Edge | Firefox | ဆာဖား | အိုပီယာ |
ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ |