gpt4 book ai didi

转载 作者:太空宇宙 更新时间:2023-11-04 16:17:03 26 4
gpt4 key购买 nike

JSF/CSS/特立尼达

注意 - 这三个是 IBM ILog 交付的一部分,不能更改

JSF 1.2-1.2_07-b03-FCS

JSTL 1_1-mr2(特殊构建)

特立尼达 1.2.8

Java 1.6.0_22-b04

eclipse 3.6.0(太阳神)

Tomcat 6.0.28(也需要在 Weblogic 上运行)

IE 7.0.5730.13

火狐:6.0

在 JSF 方面经验有限,在 CSS 方面几乎没有经验。

JSP 文件:...

    <tr:form>
<h:panelGrid
columns="2"
border="2">

<h:panelGrid
style="
background-color: Yellow;
bottom: 0px; left: 0px; right: 0px; top: 0px;
width: 150px">
<tr:outputLabel
inlineStyle="font-size: 16px"
value="#{msg.activityType}"
for="activityType"
shortDesc="#{msg.titleFreqToolTipActivityType}"/>
</h:panelGrid>
<!--... more panel grids-->
</h:panelGrid>
</tr:form>

标签显示黄色背景

改成这个-

JSP 文件:...

    <tr:form>
<h:panelGrid
columns="2"
border="2">

<h:panelGrid
styleClass="panelGridA">
<tr:outputLabel
inlineStyle="font-size: 16px"
value="#{msg.activityType}"
for="activityType"
shortDesc="#{msg.titleFreqToolTipActivityType}"/>
</h:panelGrid>
<!--... more panel grids-->
</h:panelGrid>
</tr:form>

CSS 文件:

panelGrid.panelGridA {
background-color: Yellow;
bottom: 0px; left: 0px; right: 0px; top: 0px;
width: 150px;"
}

结果不是黄色,格式被忽略。

这种类型的代码与dataTable一起工作,所以有点莫名其妙。

想法?

谢谢,约翰

最佳答案

去掉css选择器中的panelGrid或者改成table.panelGridA,h:panelGrid 被呈现为 html 表格

此外,添加 !important 标签以覆盖您可能拥有的其他内置 css)

.panelGridA {
background-color: Yellow !important;
bottom: 0px; left: 0px; right: 0px; top: 0px;
width: 150px;"
}

关于<h :panelGrid 的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7274873/

26 4 0

Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com