HTML我想让我的表格中内容都最靠上 上对齐 怎么弄啊请问?我表格中是两个 GRIDVIEW控件
<tablestyle="height:515px"><tr><tdclass="style8"><asp:GridViewID="GridView1"runat="se...
<table style="height: 515px" >
<tr>
<td class="style8">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize=5
AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84"
BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
DataSourceID="SqlDataSource1" Height="158px" Width="161px">
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<Columns>
<asp:BoundField DataField="lb_name" HeaderText="类别"
SortExpression="lb_name" />
</Columns>
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:TestConnectionString %>"
SelectCommand="SELECT [lb_name] FROM [lb]"></asp:SqlDataSource>
</td>
<td rowspan="2" align="left" >
<asp:GridView ID="GridView2" runat="server" AllowPaging="True" PageSize= 25
AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Height="363px"
Width="527px">
<Columns>
<asp:BoundField DataField="xw_title" HeaderText="xw_title"
SortExpression="xw_title" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:TestConnectionString2 %>"
SelectCommand="SELECT [xw_title] FROM [xw] ORDER BY [xw_datetime]">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td class="style7">
</td>
</tr>
</table> 展开
<tr>
<td class="style8">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize=5
AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84"
BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
DataSourceID="SqlDataSource1" Height="158px" Width="161px">
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<Columns>
<asp:BoundField DataField="lb_name" HeaderText="类别"
SortExpression="lb_name" />
</Columns>
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:TestConnectionString %>"
SelectCommand="SELECT [lb_name] FROM [lb]"></asp:SqlDataSource>
</td>
<td rowspan="2" align="left" >
<asp:GridView ID="GridView2" runat="server" AllowPaging="True" PageSize= 25
AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Height="363px"
Width="527px">
<Columns>
<asp:BoundField DataField="xw_title" HeaderText="xw_title"
SortExpression="xw_title" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:TestConnectionString2 %>"
SelectCommand="SELECT [xw_title] FROM [xw] ORDER BY [xw_datetime]">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td class="style7">
</td>
</tr>
</table> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询