How to set Table/TableRow/TabelCell width by percent in code behind in asp.net?

前端 未结 2 1418
走了就别回头了
走了就别回头了 2021-01-05 05:23

How do I set width with percent in code behind? The only option I can think of is taking the parent width and calculate by percent.i.e. TableRow.Width = Table.Width.V

2条回答
  •  长情又很酷
    2021-01-05 05:45

    Will this not work? Although I'm not entirely sure why you'd want a table row to be 25% of an overall table's width

    TableRow.Width = new Unit("25%")
    

提交回复
热议问题