alay9999
V2EX  ›  V2EX

[V2EX 技巧] 贴图和贴代码的方法(写给像我一样的小白)(14.08.29 更新版)

  •  2
     
  •   alay9999 · Aug 29, 2014 · 44935 views
    This topic created in 4451 days ago, the information mentioned may be changed or developed.
    以前我曾经写过一个一样的主题帖( https://www.v2ex.com/t/74249 ),但是有很多不完善的地方,而且因为帖子无法修改,APPEND 大家又不怎么注意,导致很多人还是要反复的测试测试,所以我再发一个更新版好了。

    一、贴图

    使用各种图片空间保存图片,支持的图床为: http://imgur.com/ 和 新浪微博(比如: http://www.v2ex.com/t/44453 )

    然后复制图片地址,注意地址后缀是图片后缀(比如.jpg、png)才行

    发帖时直接放图片网址即可,不用任何其他代码

    二、贴代码

    在 https://gist.github.com/ 写入代码;

    点击右下角的 Create public Gist 按钮;

    在发布成功的页面右侧找到 Embed URL,并复制其中内容;

    获得代码状如(为防止被转换,我插入了几个空格,下同) :<scri pt src="htt ps://gist.git hub.com/ano nym ous/589 4938.js"></sc ript>

    删除头尾变成如下格式 : h ttps://gist.gith ub.com/ano nymous/58 94938

    也可以说是获取代码中的链接地址,然后去掉 .js 后缀

    然后把获取到的,状如: ht tps://gist.gi thub.com/anony mous/58 94938 的地址粘贴到 V2EX 的编辑框即可

    如果下方代码正常显示,则证明此方法可以正常使用。

    434 replies  •  2026-05-19 16:43:07 +08:00
    1  2  3  4  5  
    ❮ ❯
    xiaowei0823
    xiaowei0823
    Aug 5, 2021
    401
    测试一下

    zhengqiaoyin
    zhengqiaoyin
    Aug 30, 2021
    404
    xiaowei0823
    xiaowei0823
    Aug 31, 2021
    405
    再试试

    corvofeng
    corvofeng
    Jun 25, 2022
    411
    corvofeng
    corvofeng
    Jun 25, 2022
    412
    <blockquote class="imgur-embed-pub" lang="en" data-id="a/9UKHViA" data-context="false" ><a href="//imgur.com/a/9UKHViA"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
    TomDu
    TomDu
    Aug 12, 2022
    414
    plau313
    plau313
    Oct 20, 2023
    415
    plau313
    plau313
    Oct 20, 2023
    416
    测试图片:
    MJZ1995
    MJZ1995
    Nov 6, 2023
    417
    gxy2825
    gxy2825
    Nov 22, 2023
    418
    kawaiidora
    kawaiidora
    Mar 7, 2024
    419


    cocoking
    cocoking
    Mar 12, 2024
    422
    <blockquote class="imgur-embed-pub" lang="en" data-id="a/iYmUtb3" ><a href="//imgur.com/a/iYmUtb3">9929</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
    liuhuansir
    liuhuansir
    Jul 9, 2024
    424
    liuhuansir
    liuhuansir
    Jul 9, 2024
    425
    再试一次
    steve009
    steve009
    Sep 25, 2024
    426
    danielxuforever
    danielxuforever
    Oct 31, 2024
    427
    danielxuforever
    danielxuforever
    Oct 31, 2024
    428
    h130666
    h130666
    Dec 3, 2025
    429
    5ssl
    5ssl
    Feb 10
    431
    pentilun
    pentilun
    May 19
    434
    1  2  3  4  5  
    ❮ ❯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 06:49 · PVG 14:49 · LAX 22:49 · JFK 01:49
    ♥ Do have faith in what you're doing.