积极答复者
如何隐藏属性名称?

问题
答案
-
你通过 display属性 隐藏吗?
你可能需要通过visibility属性来隐藏
两者的区别,请参考下面文章
http://www.cnblogs.com/wanglang002004/archive/2007/11/02/947003.html
Batistuta Cai | MSCRM MVP | www.techsun.com- 已标记为答案 荣 2010年9月9日 1:50
-
/*hide field only*/ crmForm.all.field.style.display = 'none'; /*hide field and this field's label*/ crmForm.all.field.style.display = 'none'; crmForm.all.field_c.style.display = 'none'; /*hide field and the whole line which contains this field*/ crmForm.all.field.parentElement.parentElement.style.display = 'none'; /*hide field and the section which contains this field*/ crmForm.all.field.parentElement.parentElement.parentElement.style.display = 'none'; /*hide a tab(tab number comes from 0)*/ crmForm.all.tab2Tab.style.display = 'none';
注意要隐藏最里层的tag (用 IE Developer Toolbar 定位),然后隐藏Text。
Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com, http://www.mscrm.cn- 已建议为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2010年9月7日 7:41
- 已标记为答案 荣 2010年9月9日 1:50
全部回复
-
你通过 display属性 隐藏吗?
你可能需要通过visibility属性来隐藏
两者的区别,请参考下面文章
http://www.cnblogs.com/wanglang002004/archive/2007/11/02/947003.html
Batistuta Cai | MSCRM MVP | www.techsun.com- 已标记为答案 荣 2010年9月9日 1:50
-
/*hide field only*/ crmForm.all.field.style.display = 'none'; /*hide field and this field's label*/ crmForm.all.field.style.display = 'none'; crmForm.all.field_c.style.display = 'none'; /*hide field and the whole line which contains this field*/ crmForm.all.field.parentElement.parentElement.style.display = 'none'; /*hide field and the section which contains this field*/ crmForm.all.field.parentElement.parentElement.parentElement.style.display = 'none'; /*hide a tab(tab number comes from 0)*/ crmForm.all.tab2Tab.style.display = 'none';
注意要隐藏最里层的tag (用 IE Developer Toolbar 定位),然后隐藏Text。
Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com, http://www.mscrm.cn- 已建议为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2010年9月7日 7:41
- 已标记为答案 荣 2010年9月9日 1:50