有的时候我们遇到输出的内容太长,导致失去页面美观。现在我们采用给这个内容分页的方法来解决此问题:
代码:
C# 生产新闻文章分页<div id="mycontent" runat="server" style="z-index: 101; left: 100px; width: 621px; position: absolute; top: 40px;
C# 生产新闻文章分页            height: 160px"
> </div>
C# 生产新闻文章分页            
<div id="pager" runat="server" align="center" style="z-index: 101; left: 1px; width: 618px; position: absolute; top: 162px;
C# 生产新闻文章分页                height: 34px"
>
C# 生产新闻文章分页            
</div>
前台页面两个DIV用来显示信息,mycontent用来显示新闻内容,pager 用来显示分页信息
C# 生产新闻文章分页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
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2021-06-27
  • 2021-06-10
  • 2021-12-12
  • 2021-11-19
  • 2021-12-26
相关资源
相似解决方案