V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alay9999
V2EX  ›  V2EX

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

  •  2
     
  •   alay9999 · 2014-08-29 10:46:17 +08:00 · 34365 次点击
    这是一个创建于 3521 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以前我曾经写过一个一样的主题帖( 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 的编辑框即可

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

    422 条回复    2024-03-12 19:16:42 +08:00
    1  2  3  4  5  
    MetaD
        102
    MetaD  
       2016-04-29 10:12:18 +08:00
    test
    skkk
        103
    skkk  
       2016-04-29 20:21:44 +08:00
    nasta
        104
    nasta  
       2016-05-05 19:22:54 +08:00
    xsxsxszs
        105
    xsxsxszs  
       2016-05-09 10:57:08 +08:00
    1
    2

    * asef
    * asdf
    xsxsxszs
        106
    xsxsxszs  
       2016-05-09 10:57:27 +08:00
    12
    23
    fengxiang
        107
    fengxiang  
       2016-05-09 12:59:37 +08:00
    fengxiang
        108
    fengxiang  
       2016-05-09 13:01:22 +08:00
    rebeccaMyKid
        109
    rebeccaMyKid  
       2016-05-13 01:04:02 +08:00
    ?1
    rebeccaMyKid
        110
    rebeccaMyKid  
       2016-05-14 10:46:39 +08:00
    xsxsxszs
        111
    xsxsxszs  
       2016-05-23 14:58:33 +08:00 via iPhone
    test
    xsxsxszs
        112
    xsxsxszs  
       2016-05-23 15:15:18 +08:00 via iPhone
    test
    vexplore
        113
    vexplore  
       2016-05-23 15:29:43 +08:00 via iPhone
    blackfire
        114
    blackfire  
       2016-05-30 14:50:40 +08:00
    blackfire
        115
    blackfire  
       2016-05-30 15:00:11 +08:00   ❤️ 1
    再测试
    xl224
        116
    xl224  
       2016-05-30 18:36:03 +08:00 via Android
    BigPa
        117
    BigPa  
       2016-05-31 12:58:25 +08:00
    xiahei
        118
    xiahei  
       2016-06-08 12:39:32 +08:00
    xiahei
        119
    xiahei  
       2016-06-08 12:40:01 +08:00
    eric6356
        121
    eric6356  
       2016-06-20 19:20:43 +08:00
    eric6356
        122
    eric6356  
       2016-06-20 19:22:12 +08:00
    eric6356
        123
    eric6356  
       2016-06-21 10:07:36 +08:00
    md: [图片]( )
    raw link:
    guyskk
        125
    guyskk  
       2016-07-08 00:18:44 +08:00
    guyskk
        126
    guyskk  
       2016-07-08 00:19:17 +08:00
    lawlietxxl
        128
    lawlietxxl  
       2016-07-21 00:22:52 +08:00
    lawlietxxl
        129
    lawlietxxl  
       2016-07-21 00:26:17 +08:00


    test
    v9ox
        130
    v9ox  
       2016-07-22 11:08:37 +08:00
    v9ox
        131
    v9ox  
       2016-07-22 11:11:33 +08:00
    只能 http 贴图?

    jyoe
        132
    jyoe  
       2016-07-24 18:33:42 +08:00
    caicloud2015
        133
    caicloud2015  
       2016-08-02 13:50:26 +08:00
    caicloud2015
        134
    caicloud2015  
       2016-08-02 13:56:20 +08:00
    caicloud2015
        135
    caicloud2015  
       2016-08-02 13:58:56 +08:00
    Dvel
        136
    Dvel  
       2016-08-05 13:27:40 +08:00
    测试一下:
    xiahei
        137
    xiahei  
       2016-08-06 11:26:00 +08:00
    bclerdx
        138
    bclerdx  
       2016-08-17 22:25:46 +08:00
    vicence
        139
    vicence  
       2016-08-18 21:41:28 +08:00
    vicence
        140
    vicence  
       2016-08-18 21:49:27 +08:00
    https://ooo.0o0.ooo/2016/08/18/57b5bd01baccd.jpg
    kingdomvsl
        142
    kingdomvsl  
       2016-08-20 15:07:37 +08:00
    Dashit
        143
    Dashit  
       2016-09-02 11:06:04 +08:00
    Dashit
        144
    Dashit  
       2016-09-02 11:09:37 +08:00
    hl
        145
    hl  
       2016-09-13 09:15:03 +08:00
    bwangel
        147
    bwangel  
       2016-09-13 22:36:50 +08:00
    bwangel
        148
    bwangel  
       2016-09-13 22:37:22 +08:00
    测试下

    jzp113
        149
    jzp113  
       2016-09-13 23:37:35 +08:00
    jzp113
        150
    jzp113  
       2016-09-13 23:38:36 +08:00
    Yangz
        151
    Yangz  
       2016-09-17 19:57:35 +08:00
    test:
    jiongxiaobu
        152
    jiongxiaobu  
       2016-10-18 10:09:21 +08:00
    https://ooo.0o0.ooo/2016/10/18/5805844a2940a.png
    dreamyu
        153
    dreamyu  
       2016-10-29 15:09:25 +08:00
    CommandZi
        154
    CommandZi  
       2016-11-03 10:03:04 +08:00
    NERvGear
        155
    NERvGear  
       2016-11-05 23:51:08 +08:00
    https://ooo.0o0.ooo/2016/10/18/5805844a2940a.png
    Dvel
        156
    Dvel  
       2016-11-06 18:35:10 +08:00
    --- ---
    yjm9898
        157
    yjm9898  
       2016-11-28 13:40:57 +08:00
    Test imgur
    wico77
        158
    wico77  
       2016-12-09 10:08:33 +08:00
    <iframe width="530" height="298" src="http://www.woplay.net/embed/UywfBohph9c" frameborder="0" allowfullscreen></iframe>
    skksdd
        159
    skksdd  
       2016-12-23 15:39:43 +08:00
    skksdd
        160
    skksdd  
       2016-12-23 15:40:07 +08:00
    skksdd
        161
    skksdd  
       2016-12-23 15:40:29 +08:00
    test 感谢教程
    imlinhanchao
        162
    imlinhanchao  
       2016-12-31 13:07:58 +08:00
    测试
    ShiHou
        163
    ShiHou  
       2017-01-18 03:23:55 +08:00
    tsaohai
        164
    tsaohai  
       2017-01-18 16:35:54 +08:00
    tsaohai
        165
    tsaohai  
       2017-01-18 16:37:13 +08:00
    lution
        166
    lution  
       2017-01-20 11:32:37 +08:00
    domino
        167
    domino  
       2017-02-01 02:30:22 +08:00
    sinker
        168
    sinker  
       2017-02-04 18:32:28 +08:00
    sinker
        169
    sinker  
       2017-02-04 18:39:19 +08:00
    再测试一下

    lbp0200
        170
    lbp0200  
       2017-02-06 11:43:38 +08:00
    P0P
        171
    P0P  
       2017-02-06 22:05:15 +08:00
    https://ooo.0o0.ooo/2017/02/06/5898825cebbf2.jpg
    nexklee
        172
    nexklee  
       2017-02-08 16:09:51 +08:00
    nexklee
        173
    nexklee  
       2017-02-08 16:23:39 +08:00
    https://ooo.0o0.ooo/2017/02/08/589ad56913cfd.jpg
    czheo
        174
    czheo  
       2017-02-09 02:20:04 +08:00
    czheo
        175
    czheo  
       2017-02-09 02:20:40 +08:00
    kokutou
        176
    kokutou  
       2017-03-08 17:04:43 +08:00
    joye1230
        177
    joye1230  
       2017-03-14 18:37:57 +08:00
    mains
        178
    mains  
       2017-03-14 19:10:24 +08:00
    t
    mains
        179
    mains  
       2017-03-14 19:11:54 +08:00
    t2 http://imgur.com:80@v2ex0.ad.dlog.us/tRz19ev.jpg
    mains
        180
    mains  
       2017-03-14 19:12:51 +08:00
    mains
        181
    mains  
       2017-03-14 19:13:30 +08:00
    xiparos
        183
    xiparos  
       2017-03-16 05:11:06 +08:00
    xiparos
        184
    xiparos  
       2017-03-16 05:11:40 +08:00
    xiparos
        185
    xiparos  
       2017-03-16 05:18:12 +08:00
    xiparos
        186
    xiparos  
       2017-03-16 05:23:28 +08:00
    jk591694
        187
    jk591694  
       2017-03-30 19:42:15 +08:00
    jk591694
        188
    jk591694  
       2017-03-30 19:42:51 +08:00
    jk591694
        189
    jk591694  
       2017-03-30 19:43:29 +08:00
    cs202
        190
    cs202  
       2017-04-08 07:09:27 +08:00
    cs202
        191
    cs202  
       2017-04-08 07:14:19 +08:00
    在测试一下
    cs202
        192
    cs202  
       2017-04-08 07:15:07 +08:00
    cs202
        193
    cs202  
       2017-04-08 07:15:35 +08:00
    AndyXu
        194
    AndyXu  
       2017-04-12 11:15:37 +08:00
    meunicorn
        195
    meunicorn  
       2017-04-12 20:57:35 +08:00
    nyfbb
        196
    nyfbb  
       2017-04-13 06:35:46 +08:00
    paranoiagu
        197
    paranoiagu  
       2017-04-21 17:50:38 +08:00
    测试
    http://ooo.0o0.ooo/2017/04/21/58f9d51f80ddd.png
    kameeru322813
        198
    kameeru322813  
       2017-04-25 11:48:39 +08:00
    测试一下
    ![测试回复]( )
    kameeru322813
        199
    kameeru322813  
       2017-04-25 11:49:30 +08:00
    测试回复

    kameeru322813
        200
    kameeru322813  
       2017-04-25 11:49:49 +08:00
    1  2  3  4  5  
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2762 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 12:44 · PVG 20:44 · LAX 05:44 · JFK 08:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.