$("#GridView1 tr td:last-child").each(function ()
{
var width = $(document).width() - 700.0;

var html = $(this).html()//获取内容
$(this).html("<div style=\"white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; table-layout: fixed \">" + html + "</div>").width(width);//添加div并设置样式和宽度
});

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2021-11-02
  • 2021-11-21
  • 2021-07-14
  • 2021-12-27
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2021-11-02
  • 2021-06-28
  • 2022-12-23
  • 2021-11-02
相关资源
相似解决方案