jquery手风琴图文人物介绍排名效果代码
代码语言:html
所属分类:布局界面
代码描述:jquery手风琴图文人物介绍排名效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
* {
margin: 0;
padding: 0;
}
ul li,ul ol {
list-style: none;
}
i,b,em,strong {
font-style: normal;
}
body {
font-family: '微软雅黑';
}
img {
display: block;
}
.dh ul {
position: relative;
overflow: hidden;
width: 910px;
height: 306px;
margin: 60px auto 0;
}
.dh ul li {
float: left;
width: 108px;
overflow: hidden;
height: 100%;
position: relative;
cursor: pointer;
}
.dh ul li a {
display: block;
width: 100%;
height: 100%;
}
.dh ul li .layer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: rgba(27,29,36,0.75);
height: 100%;
}
.dh ul li .layer .p1 {
position: absolute;
bottom: 5px;
left: 10px;
}
.dh ul li .layer .p2 {
position: absolute;
bottom: 5px;
right: -200%;
}
.dh ul li .layer .p2 b,.dh ul li .layer .p2 span {
display: block;
font-weight: bold;
font-size: 20px;
}
.dh ul li .layer .p1 b,.dh ul li .layer .p1 span {
display: block;
font-weight: bold;
font-size: 14px;
}
.dh ul li.curr {}
/* .dh ul li.curr .layer .p1{left: -200%;}
.dh ul li.curr .layer .p2{left: 10px;} */
.col1 {
color: #00A39A;
}
.col2 {
color: #fff;
}
</style>
</head>
<body>
<div class="dh sfq">
<ul>
<li class="curr">
<a href="javascript:;"><img src="//repo.bfw.wiki/bfwrepo/image/5fe1bd1861604.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_400,/quality,q_90" alt=""></a>
<div class="layer">
<p class="p1">
<b class="col1">胜率</b><span class="col2">NO.1</span>
</p>
<p class="p2">
<b class="col2">墨子</b><span class="col1">胜率NO.1</span>
</p>
</div>
</li>
<li>
<a href="javascript:;"><img src="//repo.bfw.wiki/bfwrepo/image/5fe1bce77bcbb.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_300,h_400,/quality,q_90" alt=""></a>
<div class="layer">
<p class="p1">
<b class="col1">出厂</b><span class="col2">NO.1</spa.........完整代码请登录后点击上方下载按钮下载查看
网友评论0