search

Home  >  Q&A  >  body text

node.js - 在README.md里添加图片

查了好多资料,都说可行的方法,我用着却不管用啊,我的路径没有写错,因为这个路径在其他地方都可以打开正确连接到那张图片,但是在README.md里面不显示图片,显示的只是这个路径,为啥呢,求解答啊。

在README.md里显示的是这样的:(没能直接放我写的链接,是因为我发现把我写的链接放在这里之后就直接显示那张照片了,证明我的路径真的没错啊,为啥在README.md里出不来呢)

天蓬老师天蓬老师2867 days ago620

reply all(6)I'll reply

  • 高洛峰

    高洛峰2017-04-17 11:56:55

    Under test:

    Get it under test:

    Use this address for pictures:
    https://raw.githubusercontent.com/zhangyudan/beautiful_stars/master/image/1.png http://img.php.cn/upload/image/000/000/000/424a935bdbe97b42ec766a0806da811a-0.png https://raw.githubusercontent.com/zhangyudan/beautiful_stars/master/image/3.png

    Have a look?

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:56:55

    Try this instead:

    ![](https://raw.githubusercontent.com/zhangyudan/beautiful_stars/master/image/1.png)
    

    reply
    0
  • PHPz

    PHPz2017-04-17 11:56:55

    This is the standard syntax of markdown. I personally tested it on github and found no problems. Don’t know where your MD file is placed? In addition, for codes that do not want to be transcoded by the website, you can wrap them with ```code blocks
    Like this.

    ![test](https://raw.githubusercontent.com/chitanda/chitanda.github.io/master/images/bkdefault_avatar.jpg)
    

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:56:55

    Are the pictures local? Otherwise it should be fine.

    reply
    0
  • PHPz

    PHPz2017-04-17 11:56:55

    Test

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:56:55

    test

    reply
    0
  • Cancelreply