日期:2014-05-17  浏览次数:20434 次

Repeater控件合并单元格問題
从网上找來代碼,調試后發現table中的td排版會亂


        <asp:Repeater ID="Repeater1" runat="server" 
            onitemdatabound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCFF">
                    <tr align="center">
                        <td width="10%">
                            <div align="center">
                                部门</div>
                        </td>
                        <td width="5%">
                            <div align="center">
                                编号</div>
                        </td>
                        <td width="20%">
                            <div align="center">
                                姓名</div>
                        </td>