如何使得TextBox内的文本右对齐? 如题。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果是动态添TextBox用这个方法public void addTextBox(Table table, int row,int cell) { TextBox textbox = new TextBox(); textbox.Width = 100; textbox.Height = 60; textbox.BackColor = Color.AliceBlue; textbox.BorderStyle = BorderStyle.Solid; textbox.BorderWidth = 1; textbox.Style.Add("text-align","center"); table.Rows[row].Cells[cell].Controls.Add(textbox); } 如果是一个TextBoxstyle="text-align:right" 关键就一行解决问题textbox.Style.Add("text-align","right"); GridView更新操作问题?? 求一在线用户列表显示的思路 CS 文件无法调用控件 求数据同步算法 做网上型的一些系统时应该如何估量价格和报价 谁能给我提供个 身份验证的代码 如何用代码实现在ListBox(web)中让垂直滚动条滚动到指定位置 如何对dataset里面的数据表,按某个字段,进行分类汇总等操作?(就如同在数据库里面的操作一样) asp.net里javascript 中操作select的问题 求救:那位大哥有 asp.net程序员参考手册(定价98.00) 的源代码???? 求人分析url window open弹出子窗口难题
{
TextBox textbox = new TextBox();
textbox.Width = 100;
textbox.Height = 60;
textbox.BackColor = Color.AliceBlue;
textbox.BorderStyle = BorderStyle.Solid;
textbox.BorderWidth = 1;
textbox.Style.Add("text-align","center");
table.Rows[row].Cells[cell].Controls.Add(textbox);
}
如果是一个TextBox
style="text-align:right"
textbox.Style.Add("text-align","right");