How to use bootstrap in Liferay?

 ̄綄美尐妖づ 提交于 2019-12-13 16:29:17

问题


I'm trying to use Bootstrap in my JSP's for my Liferay portlet. I'm aware that liferay also uses bootstrap. So how can I import bootstrap without any conflicts in my portlet?

Thanks in advance


回答1:


If you are using LR 6.2, then bootstrap will be their in your portal on every page. You just need to invoke the appropriate module of the bootstrap. Rest the js and css files required will be provided by the theme.




回答2:


From liferay 6.2 bootstrap CSS are included natively. So you can just use it. The scripts of bootstrap instead are not included and if you want it you have to import manually.



来源:https://stackoverflow.com/questions/26117699/how-to-use-bootstrap-in-liferay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!