easyui datagrid添加progressbar 進度條

{field:'shtgl',title:'審覈通過率',width:90,formatter:progressFormatter}

function progressFormatter(value,row,index){
	htmlstr='<div class="easyui-progressbar progressbar easyui-fluid" style="width: 100%; height: 20px;">'
		         +'<div class="progressbar-value" style="width: 100%; height: 20px; line-height: 20px;"> '
		             +'<div class="progressbar-text" style="width: '+value+'; height: 20px; line-height: 20px;">'+ value +'</div>'
		         +'</div>'
	       +'</div>';
    return htmlstr;  
}

網上很多都是progressbar-text寫在前面,progressbar-value寫在後面,但是出不來效果。

在這裏把他們互換一下就OK了 !真不知道網上的那些博主是怎麼實現的???

wKioL1jj4lvQPQQIAAEIAdoxi1M888.jpg-wh_50

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章