internet-explorer-8

What is triggering IE7 standards mode on this page?

醉酒当歌 提交于 2019-12-09 09:18:33
问题 1 . open IE8 2 . press F12 3 . load msdn.com you should see 4 . open a new tab and load this site you should see Please tell me what on the second page triggers the IE8 Compat View IE7 Standards On the page in question, we do NOT set the X-UA-Compatible meta tag (yet, we are thinking of setting it to EDGE) and we are not sending X-UA-Compatible in the header. I do not know where in my browser I could set this, I do know that of the three testing this, ONE does not have the issue and the other

IE.navigate2 fails with protected mode off

寵の児 提交于 2019-12-09 07:36:25
问题 I'm automating IE8 from Excel VBA (Excel 2010, Windows 7) Set IE = CreateObject("InternetExplorer.Application") IE.Navigate2 URL If URL is a website in a zone where IE protected mode is on, everything is fine. If URL is a website in a zone where IE protected mode is off, the script fails (IE becomes automatically visible, IE object is lost in VBA - automation error). Is there any way to enable navigate2 in zones with protected mode off? 回答1: What you want to do is create an instance of IE

how do I run a script only for IE 8

百般思念 提交于 2019-12-09 07:20:22
问题 I have a js file and would like to run some code only if the browser is IE 8. Is there a way I can do this? Right now I only have this but it's for all ie browsers: if ($.browser.msie) { //do stuff for IE 8 } 回答1: See Browser detection in JavaScript? and http://modernizr.com Here is the short(est?) answer: if (navigator.userAgent.match(/MSIE 8/) !== null) { // do something in IE8 } 回答2: Browser specific code is almost never a good idea. However, if you must do this, you can put your code

Google Font (with a space on it) not rendering on IE7/IE8

天涯浪子 提交于 2019-12-09 06:43:03
问题 Does anybody has an idea why would IE7/IE8 won't render a Google Font if the name has a space on it? You can see a demo here: http://jsfiddle.net/fYzAb/1/ The exact same two tags, one using "Oswald" the other one using "Francois One" (with fallback to Georgia to make it easier to spot). You can see a screenshot here http://screencast.com/t/dhhccz5n7O (IE) and here's how it should render: http://screencast.com/t/9M9uhTYTw5n (Chrome) Any help would be greatly appreciated! BTW: Here's a similar

Custom font sometimes renders in italics in IE8 / IE7

99封情书 提交于 2019-12-09 06:37:55
问题 In IE7 and IE8, when using a custom web font, text is sometimes rendered in italics, even when I explicitly set font-style: normal . The issue is sporadic - it will render fine a few times, then I refresh and everything is in italics, then I refresh and it's back to normal. I'm using this @font-face declaration: @font-face { font-family: 'DIN'; src: url('fonts/DINWeb.eot'); src: url('fonts/DINWeb.eot?#iefix') format('embedded-opentype'), url('fonts/DINWeb.woff') format('woff'); font-weight:

MSIEs WebBrowser control hosted in winforms app runs in compatibility mode

*爱你&永不变心* 提交于 2019-12-09 06:02:55
问题 I'm hosting MSIE in a winforms form. Unfortunately it insists on running in compatibility mode regardless of if I give it a page that runs in IE8 mode in stand-alone IE. The effect of that is that some content that renders correctly in stand-alone MSIE gets completely mis-aligned and messed up in the hosted control. Besides document type etc, is there some magic way to tell the webbrowser that I want it to render the page the same way as if I loaded it in stand-alone MSIE? I don't want to use

Equivalent of div display inline-block for IE8, IE7 and older browsers

随声附和 提交于 2019-12-09 05:56:31
问题 This is a fairly generic question about cross-browser compatibility. At various points in a design I'm currenly working on the only way to achieve the layout and style that I want (without resorting to using images) is to use the display:inline-block css style option. However, this is not supported by IE8 and other older browsers and this results in my design beign broken. So there are two parts to my question 1 - Is there a method of achieving a similar or equivalent effect for IE8? 2 - If

Getting IE8 compatibility with EaselJS and ExplorerCanvas

假如想象 提交于 2019-12-09 01:40:11
问题 I am using EaselJS and want to allow for backwards compatibility with ExplorerCanvas. This should be possible using the following code (see here): createjs.createCanvas = function () { ... return canvas implementation here ... } However, If I put an alert in this function and run the code, the function is never run. How do I go about getting this to work? Edit: Here is a simplified example of the code I am using: <!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8' /> <script src='

IE frameBorder alternative

随声附和 提交于 2019-12-08 19:49:31
问题 For this line of code: <iframe width="600" height="400" frameBorder="0" src="http://stackoverflow.com"></iframe>​ I got this error: (validator.w3.org : XHTML 1.0 Transitional) there is no attribute "frameBorder" I'm using frameBorder because IE8 creates some kind of border on iframes. On latest Chrome/Firefox it's fine. Is there any other, W3C valid, way to remove border form iframe on IE8 ? 回答1: Simply use CSS: <iframe width="600" height="400" style="border:none;" src="http://www.google.com"

IE8, compatibility view on local files?

浪子不回头ぞ 提交于 2019-12-08 19:20:38
问题 I just developed a small website and tested it locally in IE8, there is no compatibility view button but under settings i find an option called "display intranet sites in compatibility view" , this option is checked so i trust that all local files are rendered as IE7. I then upload the page to my server and everything works fine in IE8-mode, now the the comp-view button is visible, i click it and my design becomes fubar! I go to the settings for comp-view and uncheck the "display intranet