【问题标题】:JSF not updating changes in CSSJSF 不更新 CSS 中的更改
【发布时间】:2013-12-03 06:45:15
【问题描述】:

我有一个 JSF 项目,我想为我的 xhtml 页面设置样式。 我包括我的CSS使用:

<h:head>
    <h:outputStylesheet name="master.css" library="css" />
</h:head>

我的 css 位于 WebContent/resources/css/master.css 和它的 实际上就是这样:

#page{
    width:800px;
    height:800px;
    margin:0 auto;
}

#header{
    width:100%;
    height:100px;
    border:1px solid #000;
    margin-bottom:16px;
}

#content{
    width:100%;
    height:300px;
    margin-right:16px;
    margin-bottom:16px;
    border:1px solid #000;
}

#footer{
    width:100%;
    height:100px;
    border:1px solid #000;
}

例如,当我将内容部分的高度更改为 600 像素时 在启动我的 glassfish 并部署我的之后,真的没有任何变化 项目。我restartet eclipse,我什至重新启动了我的电脑 在我改变了我的CSS之后。当我删除我的CSS时,所有样式都消失了,所以 它被正确渲染。当我重新包含我的CSS时,他仍然只是显示 我的 600 像素中的 300 像素。

怎么了?

【问题讨论】:

    标签: css eclipse jsf-2 glassfish


    【解决方案1】:

    刷新浏览器缓存 - Ctrl + F5

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-05
      • 2013-08-07
      • 2015-02-14
      • 1970-01-01
      • 2022-01-15
      相关资源
      最近更新 更多