internet-explorer-7

IE7: CSS & jQuery: dragging up, dragged item is on top, dragging down: dragged item is below. How do I get both to be on top?

人走茶凉 提交于 2019-12-10 23:19:25
问题 Here is my jsfiddle code: http://jsfiddle.net/SMqR9/16/ You'll notice that in IE7, when you drag an item up, it is visible until it is placed. But if you drag an item down, it somehow has a lower z-index than the things we could want to drag and drop the item into. Any ideas? 回答1: Somehow none of the fiddles that were produced work in my IE9 anymore, not even those, that were working before. Since the last posted revision (26) works in Opera, Chrome and FF, as well as Comp-Mode of IE and IE7,

How can one make a container's child divs match the width of the largest child in IE7?

穿精又带淫゛_ 提交于 2019-12-10 20:41:34
问题 This seems like it should be a duplicate - I've found many similar questions - but none had an answer to mine that worked. If I have missed one, please point me to it, and I'll delete this one. I have an absolutely-positioned div containing several child divs. I want the container to expand to the width of the widest child, and all the other children to expand to the same width. The container should have a minimum width and maximum height; if there are too many children, it should scroll. So

jQuery trigger not working in IE. Why?

送分小仙女□ 提交于 2019-12-10 20:27:36
问题 $('#XynBp0').find('input').each(function(){ if ($(this).attr('value') == 'Cancel'){ $(this).trigger('click'); } }); doesn't work in IE7 回答1: it's strange but try to create a custom event $('#XynBp0 input').bind('custom',function(){ //code }) $('#XynBp0').find('input').each(function(){ if ($(this).attr('value') == 'Cancel'){ $(this).trigger('custom'); } }); Does this work? 回答2: $.click() (or $.trigger('click') ) doesn't simulate a mouse click; it fires off any onclick events bound to that

z-index working in ie8, not ie7

大城市里の小女人 提交于 2019-12-10 20:09:36
问题 For some reason, z-index is working for one particular element in IE8, but not in IE7 (or if I use the pseudo IE7 compatibility view while in IE8). It's working for all of the other elements. The only difference is that this element has a negative z-index, so I tried using a positive one of 1 and still, it's the only one not working. The part that's not working is this: .passport { position: absolute; left: -130px; z-index: -2; } And it's attached to this image that's supposed to be

Does IE7 support HTML5 data tag?

北慕城南 提交于 2019-12-10 20:08:21
问题 I'm willing to use data tag as below. <div data-color="#1337c"></div> I use jquery to fetch ( $("div").data("color"); ) and store ($("div").data("color", "red"); ) as well as manipulate data. Will IE7 support above tag ? What is the browser requirement for HTML5 ? Thanks 回答1: To answer the real question : jQuery.data works as expected in IE7 .. and IE6. (No HTML5 or official "data attribute" support required.) IE7 will happily keep any attribute supplied in the HTML and expose it as such in

Reset.css is overriding colgroup background in IE7/IE6

旧城冷巷雨未停 提交于 2019-12-10 19:06:36
问题 I have a table where the columns have a different background set by a colgroup. However, in IE6/7 it's completely ignoring the colgroup background and taking the reset.css background value for the cell (which is background:transparent). How can I fix this without having to go to each cell and manually entering a background value? HTML <table id="services-table" border="0" cellpadding="0" cellspacing="0" width="100%"> <colgroup> <col class="services-oddcolumn" /> <col class="services

Jquery scrollTo issues in IE7

夙愿已清 提交于 2019-12-10 19:02:18
问题 I have a page that uses jQuery's scrollTo plugin to manage some functionality. When you want to reset your password from the login page, it scrolls to a new form rather than taking the user to a new page. It all works fine everywhere but IE7, of course. Here's my HTML: <div id="blocksWrapper"> <div id="blocks"> <div id="form" class="block"> <form id="formLogin" action="../index.html" method="post"> <fieldset> <legend>Registered Members Log-in Here</legend> <label for="formLoginEmail">Email

IE7 not respecting display: block on <ul> <li> <a>

假装没事ソ 提交于 2019-12-10 18:43:21
问题 I am attempting a simple vertical navigation using the following HTML markup: <ul> <li><a></a></li> <li><a></a></li> <li><a></a></li> </ul> Despite having display: block; on both the <li> and <a> elements, IE7 does not appear to respect the full width of the containing div. Any ideas on this one? http://jsfiddle.net/6eKGL/ UPDATE I now believe the issue is related to the position property of the container div and the fact that its width is to be determined by the content inside of the <a>

Detecting IE browser version using PHP

时间秒杀一切 提交于 2019-12-10 18:19:20
问题 I'm using $_SERVER['HTTP_USER_AGENT'] to detect user's browser. When I run the var_dump on my localhost on IE8 it returns: ...compatible; MSIE 8.0; ... But when I upload it to my host (godaddy), I get: ...compatible; MSIE 7.0; ... What's the problem? 回答1: Check for the word TRIDENT in the string. The compatibility-thing is ie in compatibility-mode. Google it if you want to know what it means. However, the term trident is only ie8+. Edit: Also, you can set a headder/meta-tag to force ie8-mode

jQuery selector not working on Windows Phone 7

↘锁芯ラ 提交于 2019-12-10 18:17:15
问题 I have a strange problem with a web app for WP7 (7.1). The code that works with Chrome, Safari, etc.: $.each(val, function(sub_key, sub_val) { $("."+sub_key).html(sub_val); }); Examples for the variables in use: sub_key : title-home sub_val : This is home This does not work on WP7 (v. 7.1). I tried endless combinations but the only way to get the selector working is to define a static string inside the selector. Like so: $.each(val, function(sub_key, sub_val) { $(".title-home").html(sub_val);