gpt4 book ai didi

css - Liferay 禁用 AlloyUI 并仅使用 bootstrap.css

转载 作者:行者123 更新时间:2023-11-28 10:48:22 27 4
gpt4 key购买 nike

在使用 liferay portal 6.2 时,

Liferay 为 ui 开发提供了 alloy ui 和 twitter bootstrap。

我的问题 -

1) 同时使用 alloy ui 和 twitter bootstrap 是一种好习惯吗?

2) 我们能否在 Liferay 中禁用上述任何一项,以便应用程序仅使用一个 css?如何?

最佳答案

1) Is it a good practice to use both alloy ui AND twitter bootstrap?

它是在 6.2 中以这种方式设计的,这是一种正确且推荐的做法。阅读this官方博文,应该能解开你的很多疑惑。

2) Can we disable any one of the above in Liferay so that the application uses only one css? How?

在 Liferay 6.2 中,Bootstrap 更多地用于提供响应式站点布局和整体图形设计(按钮、图标等)。 Alloy UI 为 Liferay 提供了许多丰富的动态 JS 组件,例如日历(Calendar portlet 基于它)、图表设计器、旋转木马等。历史上,Allou UI 是 Liferay 的一部分(所以它存在的时间更长),并且 Bootstrap 可用从 6.2 开始就在 Liferay 中,但现在它们紧密集成了。

当然,您可以尝试删除其中一个(例如通过创建一个_unstyled 并从头开始编写所有代码),但不推荐这种方法,您肯定会失去很多 Liferay 的 UI OOTB 功能.

关于css - Liferay 禁用 AlloyUI 并仅使用 bootstrap.css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24787899/

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