How do I make a div full screen?

后端 未结 10 1852
耶瑟儿~
耶瑟儿~ 2020-12-07 10:59

I am using Flot to graph some of my data and I was thinking it would be great to make this graph appear fullscreen (occupy full space on the monitor) upon clicking on a butt

10条回答
  •  轮回少年
    2020-12-07 11:41

    u can try this..

    width and height depends on your flot or graph..

    hope u want this...

    or

    By clicking, u can use this by jquery

    $("#placeholder").css("width", $(window).width());
    $("#placeholder").css("height", $(window).height());
    

提交回复
热议问题