javascript - jVectorMap height:% does not work -
i using library: http://jvectormap.com/ create map website. attempting set width , height of map 100% through style attribute make map display @ full-screen size.
when specify following:
<div id="map1" style="width: 100%; height: 100%"></div>
the map displays follows:
the width attribute appears work correctly, height attribute not. when resize window, width scales correctly, whereas height appears scale regardless of whether scale image or down.
how can make map appear specified scale using percentage?
try in css:
head { height:100%; } #map1 { position:absolute; height:100%; }
setting height of head element 100% sets definition map height be.
Comments
Post a Comment