我有它返回我的代碼使用來填充表List<string>
的方法:ASP.NET:插入表格單元編程
string[] siteNames;
siteNames = client.GetListSiteElementNames();
foreach (string siteName in siteNames)
{
TableCell tempCell = new TableCell();
tempCell.Text = siteName;
this.sitesTableRow.Cells.Add(tempCell);
}
這就將細胞上單行,所以細胞呈現水平地穿過屏幕(我想怎麼樣),但是因爲他們是20個左右,所以他們離開頁面意味着您需要滾動查看其餘部分。
有沒有什麼辦法可以做到這一點,以便細胞在窗口邊緣切斷並進入新的生產線?
感謝
http://stackoverflow.com/questions/11250501/wrap-long-html-tables-to-next-line 這可以幫助你 –