我想你想要这个Fiddle_Demo
HTML 代码:
<div runat="server" id="div_scroll">
<div runat="server" id="div_all_columns">
<div runat="server" id="div_column" class="inner_div">
<span style="border:3px solid green; font-size:20px">
FirstName
</span>
<p> John <br/> John <br/> John <br/></p>
</div>
<div runat="server" id="div_column" class="inner_div">
<span style="border:3px solid green; font-size:20px">
LastName
</span>
<p>Smith <br/>Doe <br/> Smith</p>
</div>
</div>
</div>
CSS 代码:
#div_scroll {
overflow: auto;
//max-width: 100px;
//max-height: 50px;
}
.inner_div {
overflow: scroll;
width:120px;
height: 80px;
}
#div_all_columns
{
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
width: 280px;
//padding: 10px;
}
#div_column
{ font-size:90%;
margin:4px;
}
p
{
text-align: justify;
}
o / p如下 -