当前位置:编程学习 > C#/ASP.NET >>

gridview覆盖了span

<span id="AccountInfos" runat="server" style="margin-left:10px">各账号信息如下:</span>
             <br />
       <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
               CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 
               onpageindexchanging="GridView1_PageIndexChanging">
              <AlternatingRowStyle BackColor="White" />
              <Columns>
                  <asp:BoundField HeaderText="序号" />
                  <asp:BoundField HeaderText="用户账号" DataField="UserID" />
                  <asp:BoundField HeaderText="用户姓名" DataField="UserName" />
                  <asp:BoundField HeaderText="用户密码" DataField="UserPwd" />
                  <asp:BoundField HeaderText="用户性别" DataField="UserSex" />
                  <asp:BoundField HeaderText="所属部门" DataField="UserDep" />
                  <asp:BoundField HeaderText="启用时间" DataField="GatingTime" />
                  <asp:BoundField HeaderText="用户角色" DataField="UserRole"/>
                  <asp:BoundField DataField="Note" HeaderText="账号状态" />
                  <asp:BoundField DataField="CueInfo" HeaderText="提示" />
              </Columns>
              <EditRowStyle BackColor="#2461BF" />
              <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
              <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
              <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
              <RowStyle BackColor="#EFF3FB" />
              <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
              <SortedAscendingCellStyle BackColor="#F5F7FB" />
              <SortedAscendingHeaderStyle BackColor="#6D95E1" />
              <SortedDescendingCellStyle BackColor="#E9EBEF" />
              <SortedDescendingHeaderStyle BackColor="#4870BE" />
         </asp:GridView> --------------------编程问答-------------------- gridview覆盖了span里的数据,该如何解决呀? --------------------编程问答-------------------- 就贴个代码,你想说明啥?
看看这该死的服务器控件最终生成的html是什么吧 --------------------编程问答-------------------- 放table里。<tr>span</tr>
<tr>GridView</tr> 这样分开.我不相信这样GridView还能把span干死 --------------------编程问答-------------------- 这个问题的解决,应该要从客户端入手,特别是css 的position属性 --------------------编程问答-------------------- 排版不对,调整白
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,