不懂大话主席是什么百度哈,有插件的下载就好
效果图:
记得引入
css
<style>
li{
list-style-type: none;
}
a{
text-decoration:none ;
color: #000;
}
div,a{
font-family: '微软雅黑';
}
.yyxw_wz{
float: left;
margin-left: 30px;
background-color: #fff;
width: 585px;
height: 100%;
}
.hd,.hd ul{
height: 58px;
margin-bottom: 10px;
}
.hd ul,.bd ul{
padding: 0px;
margin: auto;
}
.on{
transition: all 0.5s ease 0s;
border-bottom: 3px solid #019983;
}
.bd ul li{
width: 100%;
height: 50px;
float: left;
}
.bd ul li div{font-size: 14px;}
</style>
html
<div class="yyxw_wz">
<div class="hd">
<ul>
<li style=" cursor: pointer;
padding-top: 20px;
height: 35px;
width: 25%;
float: left;
text-align: center;
">
<a>医院动态</a>
</li>
<li style=" cursor: pointer;
padding-top: 20px;
height: 35px;
width: 25%;
float: left;
text-align: center;
">
<a>最新公告</a>
</li>
<li style="margin-left: 40%;
padding-top: 20px;
height: 35px;
width: 9%;
text-align: right;
float: left;">
<a href="#">更多+</a>
</li>
</ul>
</div>
<div class="bd">
<ul>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;width: 80%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
</ul>
<ul>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;width: 80%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">告别排长队!放射科优化预约流程,患者看病就医更方便.. </div>
<div>2019-10-26</div>
</a>
</li>
<li><a href="#">
<div style="width: 3%;text-align: center;float: left;"><img src="../2020-1-1融水医院/images/xyxw_xtb1.png"></div>
<div style="float: left;
width: 75%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 5%;">柳州市人民医院血管外科开展2019年“世界血栓日-关注血管…</div>
<div>2019-10-26</div>
</a>
</li>
</ul>
</div>
</div>
jq
<script type="text/javascript">jQuery(".yyxw_wz").slide();</script>