首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

后盾添加 table 样式不管用

2013-02-24 
后台添加 table 样式不管用StringBuilder strTitle new StringBuilder()string strInfoFormat string

后台添加 table 样式不管用
StringBuilder strTitle = new StringBuilder();
string strInfoFormat = string.Empty;
strInfoFormat = "<td style='font-size: 26px; font-weight: bold;'><tr>{0}</tr></td>";
strTitle.Append("<table style='height:50px;'>");
strTitle.AppendFormat(strInfoFormat, model.dwmc);
strTitle.Append("</table>");
return strTitle.ToString();

我在后台写了个往界面添加 table 的东西,为啥运行的时候我设置的样式都不管用了啊

table 后台 样式
[解决办法]
外面套个div吧,兼容所有浏览器
<div style="text-align:center;"> <table style="width:700px;height:50px;margin:0px auto;"> </table> </div> 

热点排行