如图:
gridview:
解决办法:
1.
<asp:BoundField DataField="Remarks" HeaderText="备注">
<ItemStyle CssClass="abc" BorderStyle="None" /> BorderStyle="None"去掉边框
</asp:BoundField>
2.
.abc{
width:180px;
display: table; /*重点语句,表格呈现*/
table-layout: fixed;
word-wrap: break-word;
}
最终结果: