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 關注
- 529 瀏覽
添加回答
舉報