使用CSS样式解决: /* * 作者:hellostory * 日期:2011-10-10 */ table { border-collapse: collapse; /*解决单元格内容为空时,无法显示单元格边框的问题*/ }