【发布时间】:2020-06-02 11:59:07
【问题描述】:
我不知道如何配置 CSS 以使弹出窗口在我的 Leaflet 应用程序中全屏打开,以防人们从小屏幕设备访问它。到目前为止我发现的一切都是如何调整弹出包装的大小。 “宽度:100%,高度:100%”对我不起作用。
.popupCustom{
font-family: Verdana;
font-size: 13px;
width: 330px;
}
@media (min-width: 768px) and (max-width: 991px) {
.leaflet-popup-content-wrapper {
width: 250px;} }
@media (min-width: 992px) and (max-width: 1199px) {
.leaflet-popup-content-wrapper {
width: 280px; } }
@media (min-width: 1200px) {
.leaflet-popup-content-wrapper {
width: 330px; }
}
【问题讨论】: