我开始玩主题。我能够创建 CSS 并将 CSS 关联到各种表格元素。工作正常。
现在我尝试用按钮做同样的事情。但这似乎不起作用。如果我将样式类应用于按钮,那么它就可以工作。
<theme extends="oneuiv2.1">
<resource>
<content-type>text/css</content-type>
<href>app.css</href>
</resource>
<resource>
<content-type>text/css</content-type>
<href>viewpicklistCC.css</href>
</resource>
<control>
<name>Button</name>
<property>
<name>styleClass</name>
<value>MyButton</value>
</property>
</control>
<control>
<name>HtmlTable</name>
<property>
<name>styleClass</name>
<value>PNCTable</value>
</property>
</control>
<control>
<name>HtmlTd</name>
<property>
<name>styleClass</name>
<value>PNCTableCell</value>
</property>
</control>
</theme>
.MyButton {
width:179.0px;
font-family:Arial,sans-serif;
font-size:18pt;
color:rgb(255,128,0);
font-weight:bold
}
在主题中,您需要使用控件的主题 ID 才能定位它。这与 CSS 样式类不同。
您可以在控件上手动设置主题 id(在样式 - 主题中,或在所有属性 - 样式 - 主题 id 中),然后通过引用此主题 id 来定位控件。
或者您可以使用控件的默认主题 ID。 XPageswiki 包含核心控件的默认主题 ID 列表:http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_themes#themeID+values+for+core+controls http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_themes#themeID+values+for+core+controls
因此,在您的情况下,您需要使用以下主题 ID 之一来定位您的按钮:
Button: Button.Command
Button with type=submit: Button.Submit
Button with type=cancel: Button.Cancel
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)