找回密码
 注册成为天翎用户
查看: 382|回复: 0

[已解决] 视图列设置样式,带css样式

[复制链接]
白日蜜语 发表于 2021-6-18 18:34:08 | 显示全部楼层 |阅读模式
视图列设置样式,带css样式
1.在视图列设置脚本:


(function(){
var doc =getCurrentDocument();  
var jindu=doc.getItemValueAsString("当前进度");
var str="<div style='display:flex'><div class=\"pro_barline\" style=\"width:60px;margin:auto;\"><div class=\"uncomplete\" style=\"width:"+jindu+"%\"></div></div>";
str += "<div>"+jindu+"%</div></div>"
  return str;
})()

2.样式库导入样式:
.pro_barline .uncomplete {      
           height: 7px;      
           background: #0c86d5;      
           border-radius: 3px;      
       }      
              
              
       .pro_barline {      
           width: 113px;      
           height: 7px;      
           background: #e5e4e1;      
           border: 1px solid #d2d1cc;      
           text-align: left;      
           border-radius: 4px;   
           /*margin: -11px auto!important;*/
       }      
              
              
       .report_barline .pending {      
           height: 20px;      
           background: #0c86d5;      
           border-radius: 5px;      
       }      
              
              
       .report_barline {      
           width: 80%;      
           height: 20px;      
           background: #e5e4e1;      
           border: 1px solid #d2d1cc;      
           text-align: left;      
           border-radius: 5px;      
       }      
              
       td[title="SVNNO:"]{      
        display:none!important;      
       }   
        
             ul li ul li ul{ display:none!important;   }

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-15 00:20

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表