关于iframe的定位 [英] About the positioning of iframe

查看:69
本文介绍了关于iframe的定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用以下属性在javascript中设置框架高度:-

Hi All,

I am using these properties for setting the frame height in the javascript:-

style.posTop = ((parent.screen.height / 2) - frameheight); 
style.posLeft = ((parent.screen.width / 2) - framewidth);



但是,这给了我IE9和IE8中框架的不同位置.如何设置框架位置,使其与所有浏览器一致?

请帮帮我.

在此先感谢.



But, this is giving me different positions of the frame in the IE9 and IE8.How, can i set the frame position so that it is consistent with all the browsers.

Please help me.

Thanks in Advance.

推荐答案

这是一个HTML问题,而不是ASP.NET.您需要找到在其他浏览器中可以使用的属性.我不知道有什么方法可以获取屏幕尺寸,我敢打赌它是IE8中的新功能.
This is a HTML question, not an ASP.NET one. You need to find properties that work in other browsers. I didn''t know there was a way to get the screen size, I bet it''s new in IE8.


这篇关于关于iframe的定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆