<div class="hot w">
<div class="hot_l">
<h3>热门公开课</h3>
<ul>
<li>
<img src="images/pub.png" alt="">
<div class="ms">
<div>javascript</div>
<div>讲师:xxx</div>
<div>开始时间:11/11 20:30</div>
<div>直播未开通</div>
</div>
</li>
<li>
<img src="images/pub.png" alt="">
<div class="ms">
<div>javascript</div>
<div>讲师:xxx</div>
<div>开始时间:11/11 20:30</div>
<div>直播未开通</div>
</div>
</li>
</ul>
<div class="hot_l_l"> < </div>
<div class="hot_l_r"> > </div>
</div>
......
</div>
.w {
width: 1190px;
margin:0 auto;
}
body,ul,div,button,input,h3,p,nav {
padding: 0;
margin: 0;
}
.hot {
height: 256px;
margin-top: 30px;
overflow: hidden;
}
.hot_l {
width: 690px;
background-color: #fff;
padding:20px 50px 0px 50px;
box-sizing:border-box;
overflow: hidden;
position: relative;
float: left;
}
.hot_l li {
width: 285px;
border-radius: 20px;
box-sizing: border-box;
overflow: hidden;
float: left;
margin: 16px 18px 6px 0;
box-shadow: 1px 1px 1px #B9B9B9;
}
.hot_l img {
height: 120px;
vertical-align: top;
}
.hot_l li:nth-child(2n) {
margin-right: 0;
}
.ms {
width: 290px;
padding-left: 20px;
padding-right: 20px;
box-sizing:border-box;
overflow: hidden;
}
.ms div {
font-size: 14px;
line-height: 36px;
}
.ms div:nth-child(2n){
width: 90px;
float: right;
text-align: right;
}
.ms div:nth-child(2n+1){
width:150px;
float: left;
text-align: left;
}
.hot_l_l,.hot_l_r {
position: absolute;
width: 30px;
height: 60px;
line-height: 60px;
background-color: #d9d9d9;
color:#fff;
top:117px;
text-align: center;
}
.hot_l_l {
left:0;
}
.hot_l_r {
right: 0;
}