一个简易的友链样式

CSS样式:

.friends {
    display: flex;
    flex-wrap: wrap;
}
.friends .a-friend {
    display: flex;
    margin: 10px 10px 0 0;
    text-decoration: none;
    font-weight: 300;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.friends .a-friend:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.friends .a-friend:active {
    transform: scale(0.95);
}
.friends .a-friend .blog-avatar {
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.friends .a-friend .text-container {
    margin-left: 10px;
}
.friends .a-friend .text-container .name {
    font-size: 14px;
}
.friends .a-friend .text-container .description {
    font-size: 12px;
    margin-top: 5px;
}

HTML代码:

<div class="friends">
    <a class="a-friend" target="_blank" style="background-color:white;color:black" href="http://blog.hicasper.com/">
        <img class="blog-avatar" src="https://cn.gravatar.com/avatar/b9fa18886cd3acb13fcd8ebfb6140c44?s=200">
        <div class="text-container">
            <div class="name">hiCasper</div>
            <div class="description">This is Description</div>
        </div>
    </a>
</div>

样式详见 友链页面

评论

  1. 4年前
    2020-5-06 21:20:46

    大哥大哥我添加了友链不知道为什么的怎么这么长

  2. 4年前
    2020-5-02 17:03:18

    大哥能教一下怎摸用吗

    • 博主
      lizhaolun
      4年前
      2020-5-03 9:57:36

      把css部分加到主题css里面,友链页面用三个感叹号把html代码包起来就行了啊

  3. 错位
    5年前
    2019-4-20 14:37:10

    主题在360 谷歌浏览器下错位很严重啊。

    • 博主
      错位
      5年前
      2019-4-23 12:43:09

      可以附个图吗,或者去Github提issue也行~

  4. 5年前
    2019-4-10 17:45:48

    你好,你仿的大前端主题真漂亮,我在用了你的主题,但是有些问题,昵称、邮箱、网址显示错位。

  5. 5年前
    2018-11-12 0:19:06

    能不能让后台编辑文章的工具栏显示双行或更多

    • 博主
      瓜皮笔记
      5年前
      2018-11-18 15:47:00

      这个是Typecho编辑器的问题,和主题无关。推荐使用EditorMD插件

  6. 726475866
    撕逼之王
    6年前
    2018-9-21 20:46:49

    不错

发送评论 编辑评论


				
上一篇
下一篇