Angular 6 - How to apply external css stylesheet (leaflet) at component level?

前端 未结 2 1366
[愿得一人]
[愿得一人] 2021-02-19 18:24

Trying to use Leaflet in an Angular 6 component. Depending on how the css file is linked, the map shows ok or is messed up, there are missing tiles not in the right order, which

2条回答
  •  囚心锁ツ
    2021-02-19 18:48

    Doing this

    @import url("path")
    

    ex:

    @import url("https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css")
    

    or doig also

    @import "bootstrap/dist/css/bootstrap.min.css"
    

提交回复
热议问题