Question

I'm trying to modify JavaScript (jQuery, Google Maps v.3) to get the size of #mao_canvas only 80% of the screen height, but I can't undestand what to modify in tihs function. Can anyone help me with this? The basic idea is to get 80% height of #map_canvas.

$(function(){
  $("#map_canvas").css("height",$(window).height() + 'px');
  initialize();
});
Était-ce utile?

La solution

is this what you mean? $(function(){ $("#map_canvas").css("height",($(window).height()*80/100) + 'px'); initialize(); });

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top