我正在使用 Grails 构建 Web 应用程序并想要实现谷歌地图。我正在使用 Twitter Bootstrap。
因此我将以下行放入我的 BuildConfig.groovy 中:
compile ":twitter-bootstrap:2.0.2.25"
runtime ":fields:1.1"
为了在我的代码中使用 Google map ,我编写了:
<div class="map" id="mapCanvas">
问题是,这条线在使用 Twitter Bootstrap 时不会出现,但在不使用 Twitter Bootstrap 时会出现。解决方案是在 twitter bootstrap css 中进行一些更改,但在 Grails 中我无法编辑它,因为它是一个插件。那我该怎么办?
最佳答案
plugin documentation告诉您如何使用 less 来自定义 CSS。
关于css - Grails Twitter Bootstrap 和谷歌地图集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11164453/