• layui社区源码笔记之fly-list


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!--<link rel="stylesheet" href="../res/css/global.css">-->
    <style>
    h1, h2, h3 {
    font-size: 14px;
    font-weight: 400;
    }
    blockquote, body, button, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, pre, td, textarea, th, ul {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    .fly-list .fly-list-li {
    position: relative;
    height: 45px;
    margin-top: 0;
    padding: 10px 0 10px 75px;
    border-bottom: 1px dotted #E9E9E9;
    }
    li {
    list-style: none;
    }
    .fly-list-li .fly-list-avatar {
    position: absolute;
    left: 15px;
    top: 10px;
    }
    a {
    color: #333;
    text-decoration: none;
    }
    .fly-list-avatar img {
    45px;
    height: 45px;
    border-radius: 2px;
    }
    img {
    display: inline-block;
    border: none;
    }
    .fly-list-li h2 a {
    max- 86%;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    }
    .fly-list-li h2 {
    line-height: 26px;
    }
    a {
    color: #333;
    }
    .fly-list-li p {
    position: relative;
    line-height: 20px;
    font-size: 12px;
    color: #999;
    }
    .fly-list-li p span {
    padding-right: 15px;
    }
    .fly-list-hint {
    position: absolute;
    right: 0;
    top: -2px;
    }
    </style>
    </head>
    <body>
    <ul class="fly-list">
    <li class="fly-list-li">
    <a href="user/home.html" class="fly-list-avatar">
    <img src="../res/images/avatar/default.png" alt="">
    </a>
    <h2 class="fly-tip">
    <a href="jie/detail.html">关于layui 引用其他插件,扩展模块 的用法</a>
    </h2>
    <p>
    <span><a href="user/home.html">用户昵称</a></span>
    <span>1小时前</span>
    <span>layui框架综合</span>
    <span class="fly-list-hint">
    <i class="iconfont" title="回答">�</i> 8
    <i class="iconfont" title="人气">�</i> 106
    </span>
    </p>
    </li>
    <li class="fly-list-li">
    <a href="user/home.html" class="fly-list-avatar">
    <img src="../res/images/avatar/default.png" alt="">
    </a>
    <h2 class="fly-tip">
    <a href="jie/detail.html">关于layui 引用其他插件,扩展模块 的用法</a>
    </h2>
    <p>
    <span><a href="user/home.html">用户昵称</a></span>
    <span>1小时前</span>
    <span>layui框架综合</span>
    <span class="fly-list-hint">
    <i class="iconfont" title="回答">�</i> 8
    <i class="iconfont" title="人气">�</i> 106
    </span>
    </p>
    </li>


    </ul>
    </body>
    </html>

    效果:

    
    
  • 相关阅读:
    [SinGuLaRiTy] NOIP模拟题 by liu_runda
    [SinGuLaRiTy] NOIP互测模拟赛
    [SinGuLaRiTy] Nescafe 24杯模拟赛
    [SinGuLaRiTy] 复习模板-搜索
    [SinGuLaRiTy] 复习模板-高精度模板
    [SinGuLaRiTy] 复习模板-图论
    [SinGuLaRiTy] 复习模板-数据结构
    [SinGuLaRiTy] 高级搜索算法
    [SinGuLaRiTy] 2017 百度之星程序设计大赛 复赛
    [SinGuLaRiTy] 2017 百度之星程序设计大赛 初赛B
  • 原文地址:https://www.cnblogs.com/kamibaba/p/6629221.html
Copyright © 2020-2023  润新知