[英]How to resize images in table
現在,可以查看我的桌子的圖像,但我想調整它的大小。 如何設置高度和寬度。
TableCell c0 = new TableCell();
c0.Text = string.Format("<img src='"+c.Movie_image+"'/>");
c.Movie_image是數據庫中的圖像字符串。
您可以使用
c0.Text = string.Format("<img src='"+c.Movie_image+"' style='height:100px;width:100px;'/>");
或首選class屬性
c0.Text = string.Format("<img src='"+c.Movie_image+"' class='classname'/>");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.