- .x-selectable, .x-selectable * {
- -moz-user-select: text!important ;
- -khtml-user-select: text!important ;
- }
- // enable grid cell to be selected in chrome(x-selectable)/firefox(x-selectable)/IE(unselectable)
- Ext.grid.GridView.prototype.cellTpl = new Ext.Template(Ext.grid.GridView.prototype.cellTpl.html
- .replace('unselectable="on"', '').replace('class="',
- 'class="x-selectable '))
本文介绍了解决ExtJS Grid中文字无法选中的问题。通过修改CSS样式及JavaScript代码,使Chrome、Firefox和IE浏览器下的Grid单元格内容可被选中。
323

被折叠的 条评论
为什么被折叠?



