/// <summary> /// 获取标签 /// </summary> /// <param name="obj"></param> /// <param name="cache"></param> /// <param name="lm"></param> /// <returns></returns> private string GetLabel(dyk.Format.JsonObject obj) { string res = ""; string szID = obj["ID"].Value; string szText = obj["Text"].Value; if (szID != "") { int nIDIndex = gCache.GetIndex(szID); if (nIDIndex >= 0) { szText = gCache.Children[nIDIndex]["Content"].Value; } } res = "<div style=\"position:absolute;"; if (obj["Left"].Value != "") { res += "left:" + Ly.String.Source(obj["Left"].Value).toInteger + "px;"; } if (obj["Top"].Value != "") { res += "top:" + Ly.String.Source(obj["Top"].Value).toInteger + "px;"; } if (obj["Width"].Value != "") { res += "width:" + Ly.String.Source(obj["Width"].Value).toInteger + "px;"; } if (obj["Height"].Value != "") { res += "height:" + Ly.String.Source(obj["Height"].Value).toInteger + "px;"; } if (obj["Align"].Value != "") { res += "text-align:" + obj["Align"].Value + ";"; } res += obj["Style"].Value; res += "\">" + szText + "</div>"; return(res); }