请教个IE8的问题,谢谢。

沁子 2012-04-09 06:40:50
如何用JS或者Jquery获取IE8的网页缩放比例?

ps:我说的网页缩放比例就是上图右下角那个东东。
...全文
96 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
沁子 2012-04-09
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]
http://blogs.msdn.com/b/askie/archive/2009/03/19/why-is-internet-explorer-8-opening-my-web-page-at-125-zoom.aspx

http://msdn.microsoft.com/en-us/library/ms533721(VS.85).aspx

根据
screen.deviceXDP……
[/Quote]
太谢谢了,你是对的。
screen.deviceXDPI/screen.logicalXDPI
screen.deviceXDPI/screen.systemXDPI
screen.deviceYDPI/screen.systemYDPI
都是正解。哈哈。
再次感谢你。
shine333 2012-04-09
  • 打赏
  • 举报
回复
http://blogs.msdn.com/b/askie/archive/2009/03/19/why-is-internet-explorer-8-opening-my-web-page-at-125-zoom.aspx

http://msdn.microsoft.com/en-us/library/ms533721(VS.85).aspx

根据
screen.deviceXDPI / screen.logicalXDPI (或者是systemXDPI) 可以得到缩放比例
沁子 2012-04-09
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title></title>

<style type="text/css">*{ margin:0px;padding:0px;}
html,body{ width:100%;height:100%; *padding:50px ……
[/Quote]
你给的这个是啥意思?能解识下么。
SKY_4K_PPM 2012-04-09
  • 打赏
  • 举报
回复
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title></title>

<style type="text/css">*{ margin:0px;padding:0px;}
html,body{ width:100%;height:100%; *padding:50px 0 50px 0; overflow:hidden;}
#room{ position:fixed;top:50px;right:0;bottom:50px;left:0; overflow:auto; *width:100%;*height:100%;}
#header{ width:100%;height:46px; *height:50px; position:absolute;left:0;top:0; overflow:auto; background:#66CDAA;border-bottom:4px solid #6A5ACD;}
#footer{ width:100%;height:46px; *height:50px; position:absolute;left:0;bottom:0; overflow:auto; background:#66CDAA;border-top:4px solid #6A5ACD;}
#box{ width:100%;height:100%; float:left;overflow:auto; background:#EE7600;}
#ts{font-size:2em;}
</style>

</head><body><div id="header"></div>

<div id="room">

<div id="box"> <p id="ts">Сweb</p>

</div>

</div>

<div id="footer"></div>

</body></html><B></B>
沁子 2012-04-09
  • 打赏
  • 举报
回复
没人会吗?在网上找了也没找到答案。
各位大神帮助看看啊

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧