internet-explorer-8

How to add specific bower components as IE8 conditional block in Gulp

安稳与你 提交于 2019-12-10 15:05:43
问题 I have several bower components, of which I need some components like json3 , respondjs , es5shim to be added in an IE8 conditional block (in build as well as serve) like this : <!--[if lt IE 9]> <script src="bower_components/json3/json3.js"></script> <![endif]--> How should I proceed to write the task? I could not find any suitable examples with gulp-inject as well as wiredep for this issue. Please advise 回答1: It is possible with gulp-filter and gulp-inject's starttag option. Suppose you

ASP.NET App - Set IE7-Compatibility Mode?

不羁的心 提交于 2019-12-10 14:52:28
问题 What is the simpliest way to set the IE7-Compatibility Mode mode in an ASP.NET application to deal with IE8 issues? Is it possible to set this via the web.config or must it either be set at the IIS or page level? 回答1: Add the header X-UA-Compatible: IE=EmulateIE7 in the HTTP Headers tab of the site or application properties in IIS manager. In IIS7 its the HTTP Response Headers feature. You can place it the <system.webServer> section of a web.config <httpProtocol> <customHeaders> <add name="X

IE8 expected identifier error

时光毁灭记忆、已成空白 提交于 2019-12-10 14:31:45
问题 IE 7 & 8 throws an error (through jQuery): expected identifier jQuery(document).ready(function() { jQuery.i18n.properties({ 'name': "messages", 'path': "/myproject/js/i18n/", 'mode': "both", 'language': "en", 'callback': function() { } }) }); If I comment out line 'path': "/myproject/js/i18n/", error disappears, but of course, i18n plugin stops working as expected. Thanks for your help! 回答1: In messages.properties file there were lines like something.delete.something=something . These lines

IE8 and quirks mode

左心房为你撑大大i 提交于 2019-12-10 13:28:29
问题 Does IE8 run in quirks mode like IE6/7? I have a webpage that has some truly bizarre code. The content is centered with padding and negative margins. It works correctly in IE6/7 and other browsers but in IE8 the content area is half as wide and not centered (flag for quirks mode). The source code has three blank lines before the DOCTYPE. I know that will throw IE6 into quirks mode. Will it also affect IE8? I don't have access to the source so I cannot remove those lines to test it. 回答1:

Specific stylesheet for IE8

萝らか妹 提交于 2019-12-10 12:59:57
问题 How can I make a specific CSS stylesheet for Internet Explorer 8? I mean, how can I load it only if the browser is IE8? (And not IE7 and IE6) 回答1: use this <!--[if IE 8]> <link href="/stylesheets/iestyle8.css" rel="stylesheet" type="text/css" /> <![endif]--> 回答2: <!--[if IE 8]> <link href="ie8.css" rel="stylesheet" type="text/css" /> <![endif]--> http://www.quirksmode.org/css/condcom.html 回答3: You can use the following: <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="ie8.css"

ie8 respond.js 'undefined' is null or not an object

让人想犯罪 __ 提交于 2019-12-10 12:58:40
问题 I'm using respond.js (+1 for that library) and I'm getting and error to the following function of the object: translate = function (styles, href, media) { // here I got 'undefined' error in IE 8 var qs = styles.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi), ql = qs && qs.length || 0; //try to get CSS path href = href.substring(0, href.lastIndexOf("/")); var repUrls = function (css) { return css.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3"); }, useMedia = !ql &

prompt() with Internet Explorer 8

孤街醉人 提交于 2019-12-10 12:57:08
问题 I am having a hard time figuring out a solution for my problem. Here's a code snippet: var ans = prompt("Mot de passe", ''); if (ans != '' && ans != null) __doPostBack('__Page', ans); else window.location = "../Erreurs/NotAuthorized.aspx"; This code works really great with Internet Explorer 9. But my client is exclusively working with Internet Explorer 8 so I tested it with ieTester in IE8. But the problem is that the prompt doesn't show and it automatically redirect because the input had an

Background Image on <tr>

断了今生、忘了曾经 提交于 2019-12-10 11:53:33
问题 I have a table that has 13 columns and an unknown number of rows, could be 1, could be 50+. The table is also wrapped in a scroll wrapper so that only 4 rows are visible at a time. Some of the rows need to have a background image of text "EXPIRED" that spans the entire row. I have tried many different ways to try and solve this and have yet to find a solution that works. W3C says you cannot place a background image on a <TR> tag. That needs to change. One solution I tried was placing a <div>

Border: none works in IE8 but not IE7?

对着背影说爱祢 提交于 2019-12-10 11:48:19
问题 I have text inputs with 1px padding that I sometimes put 1 px borders on. I want all text inputs to fill the same vertical space, borders or not. To achieve that, I created a "don't have borders, but fill space like you do" class with border: none and 2px of padding: .BorderInputNone { border: none; padding: 2px; } This worked in IE8, but in IE7, there were visible borders around the input. EDIT: I fixed it by using border: transparent. .BorderInputNone { border: 1px solid transparent;

Bootstrap popover (placement: 'top') behaviors incorrect in IE8

谁说胖子不能爱 提交于 2019-12-10 11:43:36
问题 Here's the javascript code of the pop-over part: $('#view_case).popover({ html: true, placement: 'top', title: 'Test Cases', content: function() { return $('#case_list').html(); } }); And the screenshot of it from IE8: There's a small white triangle above the button, which shouldn't be there. And I noticed the tutorial page of Bootstrap has the same issue. But when the placement is 'right', it just works fine in IE8. So is this a common bug? Do we have some workaround for this? 回答1: I have