如何以编程方式更改输入/编辑屏幕上字段标签的字体颜色,样式等? [英] How can you programatically change the font color, style, etc. of field labels on input/edit screens?
问题描述
我遇到的基本问题是,我需要加粗一些未自动加粗的字段标签,并取消加粗一些已加粗但我不希望它们加粗的字段标签.
更为笼统的问题是如何在屏幕代码中访问它们.我认为这应该很简单,只是在文档或论坛中找不到它.
我希望外观部分下的屏幕界面中出现某些内容,以便允许设置标签样式,但是唯一可用的是标签位置".
The basic problem I have is that I need to bold some field labels that are not automatically bolded, and unbold some that are made bold but I don't want them to be.
The more general questions is just how do you access them in the screen code. I assume this should be simple, I just haven't been able to find it in the docs or forums.
I would have expected something in the screen interface under the appearance section to just allow the label styles to be set, but the only thing available is Label Position.
注意:这是特定于某些特定于应用程序的条件,而不是适用于整个主题的一般更改.
NOTE: this is specific to certain application specific conditions, not a general change that would apply to an entire theme.
推荐答案
根据字段是否必填,标签会自动变为粗体或不粗体.
Labels are BOLD or NOT BOLD automatically based on whether or not the field is REQUIRED.
我在页面颜色,字段颜色,字体,轮廓或其他任何方面都没有发现对界面的任何控制.
I haven't found any control over the interface in terms page color, field color, font, outline or anything else.
我想有人可能会在可能的地方发明自定义控件,但现在这是每个人都喜欢的口味..... vanilla.
I suppose that someone may invent custom controls where that is possible but right now it is everyone's favorite flavor.....vanilla.
这篇关于如何以编程方式更改输入/编辑屏幕上字段标签的字体颜色,样式等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!