【问题标题】:Add github accounts to readme file将 github 帐户添加到自述文件
【发布时间】:2021-09-02 14:19:32
【问题描述】:

如何在我的自述文件中添加指向 GitHub 帐户的链接。
这是我想看到的:

【问题讨论】:

    标签: github readme


    【解决方案1】:

    你可以试试这个代码:-

    这是我的 CSS:

    .photos {
      display: inline-block;
      position: relative;
      width: 200px;
      height: 200px;
      overflow: hidden;
      border-radius: 50%;
    }
    

    这是我的 HTML:

    <div class="photos">
    <a href="Github Profile url"> 
      <img href="Github profile image source"> 
    </a> 
    <div class="photos">
    <a href="Github Profile url"> 
      <img href="Github profile image soure"> 
    </a> 
    <div class="photos">
    <a href="Github Profile url"> 
      <img href="Github profile image source"> 
    </a> 
    <div class="photos">
    <a href="Github Profile url"> 
      <img href="Github profile image source"> 
    </a> 
    </div>
    

    为了显示“作者”一词,您可以使用

    ##作者

    【讨论】:

    • 不知道我们可以在md文件中使用简单的html和css,谢谢!
    【解决方案2】:

    一种快速的方法是使用contributors-img 并在您的降价中使用以下内容:

    <a href="https://github.com/OWNER/REPO/graphs/contributors">
      <img src="https://contrib.rocks/image?repo=OWNER/REPO" />
    </a>
    

    gist example

    【讨论】:

    • 感谢您的回复。但问题是作者不是贡献者。很抱歉没有在问题中提及这一点。
    猜你喜欢
    • 2023-04-08
    • 2014-09-13
    • 2017-06-18
    • 2018-01-22
    • 1970-01-01
    • 1970-01-01
    • 2022-01-03
    • 1970-01-01
    相关资源
    最近更新 更多