有的时候我们遇到输出的内容太长,导致失去页面美观。现在我们采用给这个内容分页的方法来解决此问题: 代码: <div id="mycontent" runat="server" style="z-index: 101; left: 100px; width: 621px; position: absolute; top: 40px; height: 160px"> </div> <div id="pager" runat="server" align="center" style="z-index: 101; left: 1px; width: 618px; position: absolute; top: 162px; height: 34px"> </div> 前台页面两个DIV用来显示信息,mycontent用来显示新闻内容,pager 用来显示分页信息 protected void Page_Load(object sender, EventArgs e) } 此文方法引荐自http://blog.csdn.net/chenguang79/archive/2008/03/28/2224977.aspx 相关文章: 2021-12-25 2021-05-16 2022-12-23 2022-12-23 2022-02-22 2021-11-24 2022-12-23 2021-08-20