简体   繁体   English

如何在后面的代码中设置表格的宽度和高度

[英]How to set table width and height in code behind

I have created a table like this: dim table as Table = New Table(3) 我创建了一个这样的表:暗表为Table = New Table(3)

SO now I have a Table with 3 columns. 所以现在我有一个3列的表格。

But how do I set the width and height of the table? 但是,如何设置桌子的宽度和高度?

Like table.width = 100px 像table.width = 100px

Thank you 谢谢

A simple css can server the purpose . 一个简单的CSS可以达到目的。

   table
    {width : percentage or pixels }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM