在confluence 4.0中使用css设置velocity标记的样式

在confluence 4.0中使用css设置velocity标记的样式,css,velocity,confluence,Css,Velocity,Confluence,我写了一个汇流宏。它使用velocity生成html表。如果在velocity模型中不使用和标记,如何使用css设置此标记的样式。我已尝试按照示例中的方法进行操作,但id不起作用(我的意思是它不起作用,并且在宏的结果页的代码中没有指定包含的css资源文件)如果我理解正确 例如,您需要在css文件上添加指向atlasian plugin.xml的链接 <atlassian-plugin name='Just name' key='com.your.path.to.lib'

我写了一个汇流宏。它使用velocity生成html表。如果在velocity模型中不使用
标记,如何使用css设置此标记的样式。我已尝试按照示例中的方法进行操作,但id不起作用(我的意思是它不起作用,并且在宏的结果页的代码中没有指定包含的css资源文件)

如果我理解正确
例如,您需要在css文件上添加指向atlasian plugin.xml的链接

<atlassian-plugin name='Just name' key='com.your.path.to.lib'
              plugins-version="2">
 <resource type="download" name="style.css" location="css/style.css">
        <property key="content-type" value="text/css"/>
    </resource>
</atlassian-plugin>

之后,您需要将此链接添加到velocity模板的顶部

<link rel="stylesheet" href="$req.contextPath/com.your.path.to.lib/style.css"
      type="text/css"/>

据我所知,标记只能在标记中,但我不需要详细说明标记。不一定在这里,我这样使用它,而无需将其添加到velocity模板中。