FIX верстки у длинных картинок с коротким описанием
This commit is contained in:
parent
75fc4e290d
commit
f07e03a4a7
|
|
@ -10,6 +10,7 @@ html {height: 100%;}
|
|||
body {margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden;}
|
||||
div#map {width: 100%; position: absolute; top: 0; bottom: 0px;}
|
||||
body.openBox div#map {right: 250px;}
|
||||
div.clear {clear: both;}
|
||||
div.infoCard h3 {text-align: center; margin-top: 0;}
|
||||
div.infoCard img {width: 200px; float: left; margin: 0 10px 5px 0; cursor: pointer;}
|
||||
div.header {display: block; position: absolute; top: 0; left: 110px; border-radius: 0 0 5px 5px; z-index: 1000; background-color: #FFF; padding: 5px 10px;}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ function showInfo(id)
|
|||
if (data.source.length > 11)
|
||||
description = description + ' <a href="' + data.source + '" target="blank">Подробнее...</a>';
|
||||
|
||||
description = description + '</div>';
|
||||
description = description + '</div><div class="clear"></div>';
|
||||
|
||||
marker.options.description = description;
|
||||
marker.bindPopup(marker.options.description, {maxWidth: 500, maxHeight: 300}).openPopup();
|
||||
|
|
|
|||
Loading…
Reference in New Issue