2,在里面就可以修改初始窗口大小和窗口名字 BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs){if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE;// TODO: Modify the Window class or styles here by modifying// the CREATESTRUCT cs cs.cx=500;cs.cy=500; cs.style &=~FWS_A
除IE外的浏览器查看窗口大小和位置信息: //The overall size of the browser window on the desktop var windowWidth = window.outerwidth; var windowHeight = window.outerHeight; //This is the position of the browser window on the desktop var windowX = window.screenX; var win
很多时候大家需要iframe自适应所加载的页面高度而不要iframe滚动条,但是这次我需要的是页面不需要滚动条而iframe要滚动条,且iframe自动跟随窗口大小变化.自适应页面大小.下面是代码,下次有时间在来解释下代码. $(document).ready(function(){ //调用函数 var pagestyle = function() { var iframe = $("#iframe"); var h = $(window).height() - iframe.off