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: enter image description here

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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -