css - 如何为某些 portlet 制作不同的主题

标签 css liferay portlet zk liferay-theme

我是 Liferay 的新手,遇到以下问题。我需要创建门户主题 - 没关系,没问题。这将为我的门户和默认 portlet 设置样式。但在我自己的一些 portlet 中,我使用 ZKOSS 页面,这需要完全不同的样式。我的问题是,如何做到 Liferay 主题类不会影响我的 ZKOSS 页面? Liferay 主题中有一些通用样式,例如输入等,但我不希望在我的 ZKOSS portlet 中应用这些规则。希望我清楚地解释了自己。有什么建议吗?

最佳答案

您可以设置 <css-class-wrapper>My_Portlet</css-class-wrapper>在 liferay-portlet.xml 中

详情请见:http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+UI+Guidelines

关于css - 如何为某些 portlet 制作不同的主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10007532/

相关文章:

CSS 内容漂浮在不同尺寸的屏幕上。

CSS 对齐文本垂直居中/居中

javascript - 如何使用脚本设置永久背景色

html - 如何水平居中具有两个空 div 之间的主要内容的 div

html - Liferay 错误?带有子组合器的样式被错误地解释

java - Liferay+ Spring : @ModelAttribute in render method with url parameters

Liferay 中的 Liferay.AutoFields 和 DatePicker

java - 获取同一页面内容的标签

java - Portlet 与 Servlet : why there is only Service phase in servlet and Action and render phase in portlet for request handling?

javascript - 无法在 Liferay 7 MVC Portlet 中显示 Google map