简体   繁体   English

加粗字段标签,调整Dynamics CRM 2011中的字段大小?

[英]Bold a field label, resize fields in Dynamics CRM 2011?

I don't think this is possible using the Xrm. 我认为使用Xrm不可能做到这一点。 framework but I have to ask. 框架,但我不得不问。 We have labels next to our fields and one we want to bold is the Sub Total. 我们的字段旁边有标签,我们要加粗的标签是“总计”。 I can't see any way to do this without going through document.getElementById and setting it that way somehow, but from what I read this is completely unsupported. 如果不通过document.getElementById并以某种方式进行设置,我将看不到任何实现此目的的方法,但是据我所读,这是完全不受支持的。 As well, we'd like to set set some fields to take up more exact amount of space than just 25%, 33%, 50%, 66%, 75% and 100%, because some text entry fields are just way too long, like 40 characters wide for something that only needs to be 7. 同样,我们想设置一些字段以占用比25%,33%,50%,66%,75%和100%更为精确的空间,因为某些文本输入字段太长了,例如40个字符宽的字符,只需要7个字符即可。

I don't know a supported way to do that, but to set bold take a look: 我不知道一种支持的方式,但是设​​置粗体看看:

document.getElementById("new_name").style.fontWeight="bold";

The space of controls is more complicate, but you can do the same with bold but affect the size of field. 控件的空间更加复杂,但是您可以使用粗体显示相同的内容,但会影响字段的大小。

It works for me with this code below and the parameter 'MYCustomField_c' : 它通过以下代码和参数'MYCustomField_c'为我工作:

function BoldLabel(LabelName) 
{ 
   document.getElementById(LabelName).style.fontWeight="bold";
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM