internet-explorer-7

IE7 ignoring margin in a div following an absolute positioned div

自古美人都是妖i 提交于 2019-12-07 08:14:00
问题 I have two divs inside a container, the first one has absolute positioning. In ie7, the second div apparently ignores the top margin. Padding seems to work fine, but for visual reasons I have to use margin. I know the culprit is the absolute positioned div because if i remove it the following div works fine. This is only happening in ie7 (not even in ie6). Help! Edit: I just found a solution which consists of giving the parent div padding-top just for ie7. So I would just like to know why

Can't style new HTML5 input types in IE7 with type attribute selectors

六月ゝ 毕业季﹏ 提交于 2019-12-07 07:55:09
问题 It seems that even when using shivs you can't do something like input[type="search"] to style the new HTML5 input elements in IE7. You can see an example at http://jsfiddle.net/2tmAp/ (view it in IE7 modes of course). Presumably IE7 is setting these elements to type="text" and even though the DOM itself is staying the same this still somehow prevents the styles from applying. What would be the neatest way to fix this? Is there something we can do in Javascript to trick IE7 into applying the

Table layout wrong in IE(7)

陌路散爱 提交于 2019-12-07 07:33:39
问题 Below is the code of a simple html with a table layout. In FF it's looking as I think it should look like, in IE7 it doesn't. what am I doing wrong? And how can I fix it? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <TITLE>test</TITLE> </head> <body> <table id="MainTable" cellspacing="0" cellpadding="0" border="1"> <tbody> <tr> <td colspan="4"> <div style='width:769; height:192;'>192 </div> </td> </tr> <tr> <td colspan="2" valign="top"> <div style='width:383;

jQuery: live change event on IE7

只谈情不闲聊 提交于 2019-12-07 06:55:30
I have capture change event on drop down select. This drop down field is created using AJAX so event capture need to be done with live or bind. Here I add the code which I'm using currently. This is working on fire fox. On IE7 its not working. Can anyone tell me a way to capture live event of drop down select on IE7 <select id="lob_drop" name="opt" class="select"> <option value="1">option 1</option> <option value="2">option 2</option> <option value="3">option 3</option> </select> jQuery('#lob_drop').live('change',function(){ alert(jQuery('#lob_drop option:selected').val()); }); Use jquery .on(

MVC 3 Razor PopUp Window

元气小坏坏 提交于 2019-12-07 05:34:33
问题 I need to open a new pop up window on click of a button in a view. The new window should be redirect to a specific actionmethod in a specific controller. I also need to provide attributes for size of the new pop up window. I have been trying the following code: <input type="button" name = "ClickMe" Value="ClickMe" onclick= "javascript:window.open('/Home/Create/','Customer Search',height='window.screen.height - 100', width='200',left='window.screen.width - 250' ,top='10',status='no',toobar='no

Google Maps marker cut in half internet explorer

故事扮演 提交于 2019-12-07 03:50:19
问题 I'm having a weird problem with my google maps marker icons in internet explorer. All my markers are showing up cut in half doubled and shifted over 50 %. that is using the demo code from google. So it must be something weird i'm doing elsewhere with styles or jquery, but i don't know what. Has anyone had this problem before? 回答1: I had a similar issue. The problem being that each marker icon inherited a margin>0, I solved the issue by setting the margin to zero for all img in the map div.

Can this solution be IE7 and IE6 compatible?

烂漫一生 提交于 2019-12-07 03:48:00
问题 Is there any way to make this solution IE6 and IE7 compatible? http://jsfiddle.net/kirkstrobeck/sDh7s/1/ Pulled from this question I think I've found a real solution. I've made it into a new function: jQuery.style(name, value, priority); You can use it to get values with .style('name') just like .css('name') , get the CSSStyleDeclaration with .style() , and also set values - with the ability to specify the priority as 'important'. See https://developer.mozilla.org/en/DOM/CSSStyleDeclaration.

How can I open Internet Explorer 9 in IE7 mode by default?

南楼画角 提交于 2019-12-07 03:16:33
问题 I want to set my IE to always open in IE7 mode. I mostly develop in Chrome, and for purposes of efficiency and 80/20 principle, I assume that IE9 looks and behaves mostly like Chrome. And I assume that if something looks and works decent enough in IE7, most of the time IE8 will be fine. So I just want my Internet Explorer to always open as version 7 without me having to change it in the developer panel. This will also be useful for my Selenium WebDriver functional tests that I want to run in

JSON undefined in IE7

假装没事ソ 提交于 2019-12-07 03:11:23
问题 I am using the following line of JQuery code: $.get('/ajax/buy', {'categoryname':chosenSelected}, function(data) { data = JSON.parse(data); ... However, when running it on IE7 I get this error message: JSON undefined: . How can I use the parser with compatibility to IE7 (and all major browsers)? 回答1: You can use parseJSON available in jQuery. 回答2: You don't need to parse JSON manually. You could use the getJSON function: $.getJSON('/ajax/buy', { 'categoryname' : chosenSelected }, function

Where does IE store the ASP.NET_SessionId cookie?

随声附和 提交于 2019-12-07 02:07:28
I am a bit baffled here; using IE7, ASP.NET 2.0 and Cassini (the VS built-in web server; although the same thing seems to be true for "real" applications deployed in IIS) I am looking for the session-id-cookie. My test page shows a session id (by printing out Session.SessionId ) and Response.Cookies.Keys contains ASP.NET_SessionId . So far so good. But I cannot find the cookie in IEs cookie-store! Nor does "remove all cookies" reset the session (as it does in FF)... So where - I am tempted to write that four letter word - does IE store that bloody cookie? Or am I missing something? By the way