• 请不要在回答技术问题时复制粘贴 AI 生成的内容
fengchen0vr
V2EX  ›  程序员

求个 html 写法

  •  
  •   fengchen0vr · Sep 20, 2022 · 1545 views
    This topic created in 1356 days ago, the information mentioned may be changed or developed.

    浏览器显示成如下,“复制”是按钮且不换行,只复制 1.1.1.1

    ip 地址是 1.1.1.1 复制

    codehz
        1
    codehz  
       Sep 20, 2022   ❤️ 1
    ip 地址是<span id="x">1.1.1.1</span><button onclick="navigator.clipboard.writeText(x.innerText)">复制</button>
    fengchen0vr
        2
    fengchen0vr  
    OP
       Sep 20, 2022
    @codehz 行家,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   852 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:47 · PVG 05:47 · LAX 14:47 · JFK 17:47
    ♥ Do have faith in what you're doing.