问题
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