internet-explorer-7

clientHeight/clientWidth returning different values on different browsers

大城市里の小女人 提交于 2020-01-08 17:14:14
问题 Properties document.body.clientHeight and document.body.clientWidth return different values on IE7, IE8 and Firefox: IE 8: document.body.clientHeight : 704 document.body.clientWidth : 1148 IE 7: document.body.clientHeight : 704 document.body.clientWidth : 1132 FireFox: document.body.clientHeight : 620 document.body.clientWidth : 1152 Why does this discrepancy exist? Are there any equivalent properties that are consistent across different browsers (IE8, IE7, Firefox) without using jQuery? 回答1:

Rendering issues with IE7 in quirks mode

孤者浪人 提交于 2020-01-07 05:36:28
问题 I have developed a website which works fine in all browsers except IE7 as reported by some users. In IE7 it is completely broken up. Unfortunately I do not have access to any machine with IE7. Hence I installed developer toolbar on my IE8 and tried to view the site with compatibility mode set to IE7| IE7 Standards. The site was working fine. When I set it to IE7 | IE7 Quirks mode however I could see that the site was broken. What is the simplest way to fix this issue? Is there any way I can

ie7: background image does not show up at all

旧城冷巷雨未停 提交于 2020-01-07 02:11:15
问题 body { background: #f6f6f6 url(http://path.to.image/body-bg.gif) repeat-x; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; } works in everything but ie7. what's wrong here? 回答1: url(/body-bg.gif) is skipped by ie7 use url(body-bg.gif) instead! 回答2: Maybe the line-height is causing the issue, try taking it out. Also, try body { height:1%; } 来源: https://stackoverflow.com/questions/3610556/ie7-background-image-does-not-show-up-at-all

onclick setAttribute workaround for IE7

只谈情不闲聊 提交于 2020-01-06 12:46:30
问题 I can't seem to get this: top.document.getElementById("clickThis").setAttribute("onclick", "tinyMCE.execCommand('mceInsertContent',false,'<div style=\"width: 600px; margin: 0 auto .5em;\" class=\"wp-caption alignnone\"><a href=\"<?php echo $full_image_path; ?>\" rel=\"lightbox\" title=\"View in lightbox\"><img class=\"alignnone\" src=\"<?php echo $full_width; ?>\" alt=\"<?php echo $value; ?>\" /></a><p class=\"wp-caption-text\"><?php echo $get_image->caption; ?></p></div>');"); To work in IE7

IE7 background color issue

谁都会走 提交于 2020-01-06 06:56:32
问题 Can anyone tell me why the background color 'black' isn't being picked up on the footer of this website in IE7? http://james-gilmore.co.uk/index.html 回答1: Probably the hasLayout bug - have a quick read of this: http://www.satzansatz.de/cssd/onhavinglayout.html Try adding height:1% 回答2: The footer container has all floated children inside and therefore has no height. You need to clear the floats. There are many ways to do this, ranging from adding a clearfix class to the container or simply

In IE, I can only send request to server 7 times maximum when using ajax

妖精的绣舞 提交于 2020-01-06 05:10:47
问题 I added ajax to a web application with 7 'select' tags, in which selecting an option would populate the following 'select' tags with the related information. And some of these tags can also show another set of radio buttons or checkboxes. In all, you can make more than 10 requests to the server until you get your desired product. All work fine in major browsers except in IE, where the request to the server are limited to 7 times and then nothing happens any more until you refresh the browser

In IE, I can only send request to server 7 times maximum when using ajax

本秂侑毒 提交于 2020-01-06 05:10:25
问题 I added ajax to a web application with 7 'select' tags, in which selecting an option would populate the following 'select' tags with the related information. And some of these tags can also show another set of radio buttons or checkboxes. In all, you can make more than 10 requests to the server until you get your desired product. All work fine in major browsers except in IE, where the request to the server are limited to 7 times and then nothing happens any more until you refresh the browser

IE7 window.open when .focus return null

断了今生、忘了曾经 提交于 2020-01-06 01:44:57
问题 I'm trying to do something like this win = null; win = window.open('/url/to/link','tab'); win.focus(); but in IE7 it returns me at the line of win.focus(); the error that win is null. How can I solve it? Thanks in advance! 回答1: You can try adding a slight delay to make sure that the window is open //win = null; <--useless win = window.open('/url/to/link','tab'); if(win)window.focus(); else{ var timer = window.setTimeout( function(){ if(win)win.focus(); }, 100 ); } This day in age, most people

Force IE 7 Compatiblity Mode in IE8

大城市里の小女人 提交于 2020-01-05 12:14:55
问题 I have a c# asp.net website and needs to run in compatibility mode. The website runs (forced) in a popup. I have searched on google and stackoverflow about how to force compatibility mode and found scripts like: <meta http-equiv="X-UA-Compatible" value="IE=7"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="X-UA-Compatible" value="IE=8"> I have tried some of above but when I start the website in the browser

Force IE 7 Compatiblity Mode in IE8

白昼怎懂夜的黑 提交于 2020-01-05 12:13:10
问题 I have a c# asp.net website and needs to run in compatibility mode. The website runs (forced) in a popup. I have searched on google and stackoverflow about how to force compatibility mode and found scripts like: <meta http-equiv="X-UA-Compatible" value="IE=7"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="X-UA-Compatible" value="IE=8"> I have tried some of above but when I start the website in the browser