关于中gridview 字符串截取的方法

luohaoswjt 12 0 PDF 2021-01-30 12:01:22

首先在前台设置样式 代码如下:<style type=”text/css”> .listover150 { width:150px; text-align:left; overflow:hidden; text-overflow:ellipsis;//超长设置省略号 white-space:nowrap; } </style> 然后在后台GridView中的RowDataBind中进行设置 ,附带几句可以改变鼠标移动的样式设置 代码如下: //列表加载处理 protected void gv_showReport_RowDataBo

用户评论
请输入评论内容
评分:
暂无评论