修改过的项目内容
加某個屬性,支持該屬性在后臺配置下前端的顯示運行:
if($(n).attr("field")&&$(n).attr("field")=="1"){var?wrapperWidth=$(n).find("div[id*=fsUploadProgress]").width();$(n).find(".progress").each(function(){$(this).css("width",wrapperWidth+"px");$(this).find(".Container").css("width",wrapperWidth*0.9+"px");var?_width?=?$(this).find(".Container").width()-30;$(this).find(".progressName").css({"overflow":"visible","width":_width+"px"});$(this).find(".progressName").children("div:has('.fl')").css("width","80%");}); }總結:
在項目中,一般都用精確的值,百分比會有浮動的差異。
合并css樣式可以用數(shù)組:.css({"":"","":""});
查找某個div下的class可以用:children("div:has('.f1')");
轉載于:https://blog.51cto.com/dd118/1677993
總結
- 上一篇: tbdl是什么文件
- 下一篇: could not perform ad