6 回答

TA贡献1943条经验 获得超7个赞
和table的布局方式也有关系,css:
自动布局,根据内容大小:
{
table-layout:auto;
}
固定布局,根据设置的宽高:
{
table-layout:fixed;
}

TA贡献1784条经验 获得超9个赞
<div > <asp:Panel runat="server" ScrollBars="Both" BorderColor="Blue" Border BorderWidth="1px" Width="51%" Height="72px"> <asp:GridView runat="server" AutoGenerateColumns="False" Height="62px" Width="499px"> <Columns> <asp:BoundField HeaderText="工号" ItemStyle-Width="40px" ItemStyle-Height="20px"> <ItemStyle Width="40px" /> </asp:BoundField> <asp:BoundField HeaderText="姓名" ItemStyle-Width="60px" > <ItemStyle Width="60px" /> </asp:BoundField> <asp:BoundField HeaderText="姓别" ItemStyle-Width="60px" > <ItemStyle Width="60px" /> </asp:BoundField> <asp:BoundField HeaderText="部门" ItemStyle-Width="60px" > <ItemStyle Width="60px" /> </asp:BoundField> <asp:BoundField HeaderText="班组车间" ItemStyle-Width="110px" > <ItemStyle Width="60px" /> </asp:BoundField> <asp:BoundField HeaderText="学历" ItemStyle-Width="90px" > <ItemStyle Width="40px" /> </asp:BoundField> <asp:BoundField HeaderText="民族" ItemStyle-Width="110px" > <ItemStyle Width="60px" /> </asp:BoundField> <asp:BoundField HeaderText="备注" ItemStyle-Width="200px" > <ItemStyle Width="150px" /> </asp:BoundField> </Columns> </asp:GridView> </asp:Panel> </div>
可根据情况调整。。。
- 6 回答
- 0 关注
- 488 浏览
添加回答
举报