How to define CellPadding in GridView in ASP.NET

前端 未结 3 1904
难免孤独
难免孤独 2021-02-20 05:55
  • I autoformat a GridView in ASP.NET.
  • It looks nice but the headers all run together like this:

    idfirstNamelastNameage

  • I

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 06:19

    You should set a cssclass and use css to control it. The only property of a table you cant fully control cross browser with css is cellspacing.

    .myTableClass tr th {
        padding: 5px;
    }
    

提交回复
热议问题