<!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>
效果: