ins
V2EX  ›  问与答

想在自己的主页上挂上一个查询 ip 地址的

  •  
  •   ins · Jun 24, 2016 · 2686 views
    This topic created in 3786 days ago, the information mentioned may be changed or developed.
    RT :本人技术渣,想在自己的主页上挂上一个 查询 ip 地址的 页面,请问大神们能否分享一个这样的 html 页面源代码?感激不尽.谢谢
    4 replies  •  2016-06-26 00:26:00 +08:00
    linuxchild
    linuxchild
    Jun 25, 2016 via Android
    1
    你写点 js 应该可以搞定,或者写个接口。
    html 写个输入框然后往固定接口 post 数据就好了
    zangbob
    zangbob
    Jun 25, 2016
    2
    `<iframe style="margin-top:5px;" src="http://1212.ip138.com/ic.asp" frameborder="0" scrolling="no" width="50%" height="60%"></iframe>`

    不知道上面的 html 代码能不能正常显示。
    zangbob
    zangbob
    Jun 25, 2016
    3
    回复完了才发现楼主是要查询 IP 。。。你参考一下 ip138.com
    misty8873
    misty8873
    Jun 26, 2016 via iPhone
    4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1537 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:55 · PVG 01:55 · LAX 09:55 · JFK 12:55
    ♥ Do have faith in what you're doing.