我正在使用asp.net 4
滚动未显示
<div id="tabs-1">
<asp:ScriptManager ID="ScriptManager2" runat="server" />
<asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<table id="BookingTable" runat="server" class="tableResultClass">
<tr>
<th>ID</th>
<th>PlanTime</th>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="mealTimeSelector" />
</Triggers>
</asp:UpdatePanel>
</div>
.tableResultClass{
overflow:scroll;
border:1px solid #d3d3d3;
background:#fefefe;
width:90%;
margin:5% auto 0;
-moz-border-radius:5px; /* FF1+ */
-webkit-border-radius:5px; /* Saf3-4 */
border-radius:5px;
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css
答案 0 :(得分:0)
创建一个围绕表的div并将CSS类应用于该div。溢出不适用于表。