ຄູ່ມວນຊວກ HTML <input> popovertargetaction
ຄູ່ມວນຊວກ ແລະ ການນໍາໃຊ້
popovertargetaction
ຄູ່ມວນຊວກທີ່ອະນຸຍາດໃຫ້ທ່ານລະບຸວ່າຈະເກີດຫຍັງຫຼັງຈາກທີ່ທ່ານກົດດັນບີັນ.
ທ່ານສາມາດໃຊ້ "show"
ລະບຸຄູ່ມວນຊວກ"hide"
ລະບຸຄູ່ມວນຊວກ "toggle"
ລະບຸຄູ່ມວນຊວກລະບຸຄູ່ມວນຊວກລະບຸຄູ່ມວນຊວກ.
popovertargetaction
ຄູ່ມວນຊວກ type="button"
ມັນຈະມີຜົນກະທົບ.
ຖ້າບໍ່ໄດ້ກຳນົດ popovertargetaction
ຄູ່ມວນຊວກ "toggle"
ຄູ່ມວນຊວກ
ອີງຕາມອີກຢ່າງນັ້ນ:
ຄູ່ມວນຊວກ HTMLຜົນງານ HTML popover
ຄູ່ມວນຊວກ HTMLຄູ່ມວນຊວກ HTML Input popovertarget
Example
ເມື່ອການກົດດັນບານເຂົ້າລະບຸບີັນບີນບາງຈະສະແດງປະກອບຢູ່ທີ່:
<h1 popover id="myheader">Hello</h1> <input type="button" popovertarget="myheader" popovertargetaction="show" value="Click me!">
Syntax
<input type="button" popovertarget="element_id" popovertargetaction="hide|show|toggle">
Attribute value
Value | Description | Example |
---|---|---|
hide | When you click the button, the popup element will be hidden. | |
show | When you click the button, the popup element will be shown. | |
toggle | Default value. When you click the button, the popup element will toggle between hidden and visible. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
114 | 114 | ບໍ່ສາມາດສະໜັບສະໜູນ | 17 | 100 |