我在xpages.I使用字体真棒有一个名为securePolling主题中,我给的链接资源 内securePolling代码字体真棒进行XPages不会生效,即使装载后
<theme extends="webstandard" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/ schema/stylekit.xsd" >
<resource rendered="#{javascript:context.getProperty('xsp.resources.aggregate').equals('true')}">
<content-type>text/css</content-type>
<href>font-awesome-fontFamily.css</href>
</resource>
<resource rendered="#{javascript:context.getProperty('xsp.resources.aggregate').equals('true')}">
<content-type>text/css</content-type>
<href>font-awesome-4.2.0/font-awesome-4.2.0/css/font-awesome.min.css</href>
</resource>
因此font-awesome文件夹位于WebContent文件夹中。下面 是xsp.properties
xsp.ajax.renderwholetree=false
xsp.application.timeout=30
xsp.compress.mode=gzip
xsp.error.page=error.xsp
xsp.html.page.encoding=utf-8
xsp.library.depends=com.ibm.xsp.extlib.library
xsp.persistence.maxviews=16
xsp.persistence.mode=basic
xsp.resources.aggregate=false
xsp.session.timeout=30
xsp.theme=securePolling.theme
xsp.upload.maximumsize=10000
代码这一切操作,我可以在浏览器调试工具检查它显示的是字体awesome.css加载但字体不花费蚂蚁图标后的效果, 这里是更清晰的图像。
经过一番研究,也尝试改变字体awesome.css代码
@font-face {
font-family: "FontAwesome";
src: url('font/fontawesome-webfont.eot');
src: url('font/fontawesome-webfont.eot?#iefix') format('eot');
src: url('font/fontawesome-webfont.woff') format('woff');
src: url('font/fontawesome-webfont.ttf') format('truetype');
src: url('font/fontawesome-webfont.svg#FontAwesome') format('svg');
font-weight: normal;
font-style: normal;
}
任何帮助将非常感激。
当聚合更改为“false”时,它工作得很好,但是当它为“true”时,它不会生效。图像结果和控制台在更改为“true”之后。
Thanx给Brian Gleeson,答案和评论都帮助我解决并完成它。基本上,我没有正确地获取字体文件。 –