문제

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();
});
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top