internet-explorer-7

alternative for inline-block for ie7

喜你入骨 提交于 2019-12-07 02:05:56
问题 for my website, im using inline-block property. it works well for mozilla and ie8 but is displayed as block elements in ie7. how can i set it right? 回答1: Have a look at this: http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/ - at this point in time, IE8 was not out yet, so I believe the author is talking about IE7. 来源: https://stackoverflow.com/questions/4988727/alternative-for-inline-block-for-ie7

Background CSS image no showing in IE7 only

蓝咒 提交于 2019-12-07 01:21:34
问题 The html is: <div class="choose-os"> <p> <a href="someLink" class="windows">Microsoft Windows</a> <a href="someOtherLink" class="macos">Apple Mac OS</a> </p> </div> The CSS is: .choose-os { margin: 20px 0; padding: 20px; background: #e7eefa; } .choose-os p { margin: 0; } .choose-os p a { display: inline-block; text-indent: -100000px; height: 56px; width: 308px; } .choose-os p a.windows { background: url(../images/button-windows-bg.png) 0 0; } .choose-os p a.macos { background: url(../images

Using CSS to switch left/right position of <label> and <input> in IE7+

自作多情 提交于 2019-12-06 23:28:29
I have a form comprising a sequence of <label> , <input> pairs (one per line) as follows: <ol style="list-style: none;"> <li class="normal"> <label>Channel Name</label> <input type="text"> </li> <li class="reversed"> <label>Subscribe to this channel</label> <input type="checkbox"> </li> </ol> I'm looking for a pure-CSS way to modify the second line to display the <input> checkbox to the left of the <label> (i.e. exchange their order without modifying the HTML). The following simple rule works perfectly in Firefox, Chrome, Safari, Opera, IE8+... li.reversed input { float: left; } ... but it

Is it true that IE7 doesnt support indexOf javascript? [duplicate]

安稳与你 提交于 2019-12-06 20:40:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: .indexOf function on an array not working in IE7/8 using JavaScript Im developing for IE7 and have some troubles with the javascript function indexOf. After browsing some sites I read that IE7 doesnt support indexOf. Is this correct, and if so, whats the easiest way to check if a string contains a given string? var test = window.location.toString(); test = test.toLowerCase(); var idString =

jQuery 1.4.2 Using .delegate() on a change event for a doropdown list

元气小坏坏 提交于 2019-12-06 17:49:27
My problem is that I am not sure how to use .delegate for the following scenario: our application has a voting system to which several rounds or steps can be added. every time a new step is added there is a list of options that defines how the round/step is to be won. <select class="listOfOptions"> <option value="U">Unanimous</option> <option value="M">Majority</option> <option value="C" class="customOption"># of votes…</option> </select> now when an option is selected the following code runs $(document).ready(function() { $('.listOfOptions').live('change', function() { if ($(this).find('

Using Angular 2 with older browsers thanks to TypeScript?

两盒软妹~` 提交于 2019-12-06 17:25:40
问题 Since the Angular 2 team is using Typescript for it's build, would it be a feasible assumption that they could compile a version of Angular 2 that would work on older browsers? 回答1: Edit 2: It appears the Angular team has decided to support some non evergreen browsers. Per Brad Green (of the Angular team): What browsers versions will Angular 2 support? There's a new build widget with some hints on https://github.com/angular/angular Currently, the Readme shows IE9 and up. Angular 2 will only

Support of :after in IE7

随声附和 提交于 2019-12-06 16:09:17
Long story short, I want to add an absolutely positioned pseudo element after another element, so I simply use the :after pseudo element in my stylesheet. This works like a charm, except in IE7. I should think that :after is supported in IE7, no? The clearfix hack used in Boilerplate works fine, so why not in my example? When I look at the CSS in the style inspector, it does seem to print it out, so it seems to me that it understands it, but I can't see the generated element nonetheless. Am I missing something? .myclass:after { content:""; display:table; width:100px; height:100px; background:

JQuery code obliterates WordPress site in Internet Explorer 7

∥☆過路亽.° 提交于 2019-12-06 15:27:55
I'm building a WordPress-based site that has a few very basic jQuery-animated effects. When I turn JavaScript off in the browser, the site is displayed just fine. With JavaScript on, there's just a blank page. I went through my custom js file, deleting snippets of code and checking the site each time, to isolate the problem. I discovered, that these two seemingly innocent lines cause the disappearance of the website: $('#wrapper, #topmask').animate({top: "15%"}, 1300); $('#bottommask').animate({bottom: "15%"}, 1300); With these two lines cut out, the site is displayed. When they are put back

IE7 - display: block <a> within <li> does not display correctly

江枫思渺然 提交于 2019-12-06 14:54:43
问题 If you look at this code: http://jsfiddle.net/b3KaM/2/ in IE7 the <a> tags do not stretch to their parent <li> width even if display: block; is set. You can see the difference with the background color set to red on the list items and yellow on the links. it obviously work fine in FF/Chrome & friends. EDIT: the complication here is that I cannot set a fixed width - the link text should stay on one line and the whole list should expand as needed. I'm aware that this as been asked before and I

Failed to override the getResponseHeader method on XMLHttpRequest

风格不统一 提交于 2019-12-06 14:07:30
I was trying to override the getResponseBody method on XMLHttpRequest object. The code looks so: xhr.onreadyStateChange = function(){ if (xhr.readyState !== 4) { return; } if (xhr.status === 200) { // callback to handle the result } else { var _orig = xhr.getResponseHeader; xhr.getResponseHeader = function(name){ return decodeHeader(_orig.apply(xhr,[name])); }; // callback to handle the failure } } It throws an error "Object doesn't support this property or method" when calling the _orig.apply . Any idea? Thanks. PS: I create a new XHR object every time and do not reuse the old one.