ຄວາມຜົນງານ HTML <button> popovertarget
ການສະແດງແລະການນຳໃຊ້
ການໃຊ້ popovertarget
Attribute, you can reference the popover element with the specified id and switch between showing and hiding:
Hello
See also:
HTML Reference Manual:HTML popover ຜົນງານ
HTML Reference Manual:HTML Button popovertargetaction Attribute
Example
By referencing the popover element with the popovertarget attribute, you can show/hide the specified popover element:
<h1 popover id="myheader">Hello</h1> <button popovertarget="myheader">Click me!<button>
Syntax
<button popovertarget="element_id">
Attribute Value
Value | Description |
---|---|
element_id | ID ຂອງປະກອບອອກຈາກທີ່ກ່ຽວຂ້ອງກັບກັບປະກອບອອກຈາກ popover. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
114 | 114 | ບໍ່ສາມາດສະໜັບສະໜູນ | 17 | 100 |