问题:分页部分显示的页码撑开占满整个表格底部

解决方法:

1.通过浏览器察看源,发现是分页部分的table样式受到整个页面的table设置的样式的影响,分页是一个tr里面的td里面的table

 

2.设置gridview的PageStyle属性的CssClass来控制分页部分table的宽度

gridview设置

<PageStyle CssClass="pageCss"/〉

style样式设置

<style type="text/css">

     .pageCss td>table

     {

       textalign:center;

       width:5%

     }

</style>

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-11-12
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案