GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Gea-Suan Lin (gslin@abpe.org)'s status on Sunday, 12-May-2024 18:44:21 JST Gea-Suan Lin Gea-Suan Lin

    Popover API

    看到「Popover API (developer.mozilla.org)」這個討論,引用的資料是 MDN 上面的「Popover API」,從名字也可以看出來與 pop over 有關 (話說查單字發現 popover 這個詞在字典裡居然是泡芙,英文維基百科上的 Popover 也可以看到...)。

    Anyway,馬上有想到的是 modal 類的操作,在 MDN 上面的文件裡面有範例,可以用純 HTML 的方式操作:

    Toggle the popover
    Popover content

    效果就是在畫面正中央出現,預設有 border。

    另外也可以透過 JavaScrip

    https://blog.gslin.org/archives/2024/05/12/11792/popover-api/

    #Browser #Computer #Murmuring #Network #Programming #Software #WWW #api #html #modal #popover #standard #web

    In conversation about a year ago from abpe.org permalink

    Attachments


    • Embed this notice
      Roy Tam (roytam1@miniwa.moe)'s status on Sunday, 12-May-2024 18:44:21 JST Roy Tam Roy Tam
      in reply to
      @gslin 直接用html5 dialog元素兼容性會不會更好一點
      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.