level 1
还有啊,各路大神们。有没有一个能在bootstrap Table 数据加载完成时调用的方法啊。我需要在它加载完成之后再设置默认选中某一行。
2015年05月27日 02点05分
4
level 1
用响应式表格不就行了,也不用自己写,只在table外加一个样式table-responsive就行了。
2015年06月12日 03点06分
5
谢谢了 但是我的主要问题是js 文字换行的问题导致的
2015年06月16日 09点06分
@墨雪配斩龙 在加个.text-nowarp行吗?
2016年03月24日 07点03分
回复 A806729923 :没用的
2016年03月25日 14点03分
level 1
审查元素,强制改样式CSS,或者在第三个cloumns设置width属性,这个是bootstarp-table控件.
2015年12月02日 10点12分
11
level 1
{field : "orgName",title : "现所在单位",width:250},这样是支持的,可以试下,注意:width后面纯数字
2016年03月24日 03点03分
12
level 1
可以用变通的方式;根据列设置,对显示值做操作,默认显示部分字符,鼠标移动至列上面则显示全部信息;也可以对显示值其他方法显示。
field: 'test',
title: '测试',
formatter: testFormatter
function testFormatter(value, row, index) {
if(value !=null && value.length >15){
return '<a title="'+value+'" href="javascript:void(0)" >'+value.substr(0,15)+'..</a>';
}
return value;
}
2016年12月14日 10点12分
15
这样也是一种解决办法
![[呵呵]](/static/emoticons/u5475u5475.png)
,
2017年05月02日 09点05分
level 1
楼主怎么解决的,用data-cell-style解决的吗?
2017年05月02日 09点05分
18
level 1
<colgroup>
<col style="width:10%">
<!-- <col style="width:15%"> -->
<col style="width:10%">
<col style="width:30%">
<col style="width:10%">
<col style="width:30%">
</colgroup>
经测,上面方法有效
2017年05月22日 00点05分
19