簡體   English   中英

如何調整表格中的圖片大小

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM