admin管理员组文章数量:1303373
I want to make the edges of my leaflet popup box sharp (corners) instead of rounded edges. I have downloaded the source leaflet-src.js
but can't seem to find where the this is happening. Places I've looked for are in the class:
leaflet-popup-content-wrapper
leaflet-popup-content
leaflet-popup-close-button
Does anyone know where this is happening?
I want to make the edges of my leaflet popup box sharp (corners) instead of rounded edges. I have downloaded the source leaflet-src.js
but can't seem to find where the this is happening. Places I've looked for are in the class:
leaflet-popup-content-wrapper
leaflet-popup-content
leaflet-popup-close-button
Does anyone know where this is happening?
Share Improve this question asked Nov 26, 2013 at 16:15 fifamaniac04fifamaniac04 2,38314 gold badges51 silver badges75 bronze badges2 Answers
Reset to default 9you can override the default style by adding !important key word
For example:- put this class inside your page this will over ride the border style
.leaflet-popup-content-wrapper,.leaflet-popup-content
{
border-radius:0 !important;
}
For multiple browser support
.leaflet-popup-content-wrapper,.leaflet-popup-content
{
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
First thing is that you have to find which tag is making the radius and over ride that class you can use the developer tool for identifying that.
I've not used leaflet.js, but this sounds like a CSS issue more than Javascript. The .leaflet-popup-content-wrapper
class has border-radius: 12px
, which seems relevant. Specified here in the source.
本文标签: javascriptHow to remove rounded corners from leaflet popupStack Overflow
版权声明:本文标题:javascript - How to remove rounded corners from leaflet popup - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741733958a2394976.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论