CSS部分
<style type="text/css">
* {
padding: 0;
margin: 0;
list-style: none;
}
.scroll-content {
width: 500px;
height: 280px;
border: solid 1px
}
.company-content {
width: 100%;
height: calc(100% - 35px);
overflow: hidden;/*滚动区域父元素超出部分隐藏*/
}
.company-list li {
height: 35px;
line-height: 35px;
border-bottom: solid 1px
}
.company-list li span {
display: inline-block;
width: 33%;
text-align: center;
}
</style>
body部分
<div class="scroll-content"></div>
JavaScript部分
<script src="resource/js/jquery-2.1.0.js"