asp.net gridview强制换行

//正常换行
GridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");
//下面这行是自动换行
GridView1.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");
posted @ 2008-12-13 23:51  liuyan  阅读(370)  评论(0)    收藏  举报