internet-explorer-7

Vertical align middle on an inline-block anchor tag

喜欢而已 提交于 2019-12-18 02:42:46
问题 I have a need for my links and buttons to look the same, but I've been unable to vertically align the text within an "a" tag in the same manner as the "button" tag. It is important to note that the tags need to be able to handle multiple lines of text (so line-height will not work). a,button { display: inline-block; -moz-box-sizing: border-box; width: 150px; height: 150px; vertical-align: middle; border: 1px solid #000; text-align: center; } See the jsfiddle below: http://jsfiddle.net/bZsaw/3

How to write conditional comment for non IE browsers?

陌路散爱 提交于 2019-12-18 02:16:44
问题 I don't want to use a couple of javascript plugins for IE 6/7. But I want to use them for all other browsers. How can I do it? Is there any way I can do it? 回答1: From the Wikipedia article on conditional comments (modified to fit your version requirements): <!--[if gt IE 7]><!--> <p>This code displays on non-IE browsers and on IE 8 or higher.</p> <!--<![endif]--> The weird markup in the first line serves to make the markup standards compliant. 回答2: Your question would be better phrased as

How to get zoom level in Internet Explorer 7? (javascript)

人盡茶涼 提交于 2019-12-17 23:46:12
问题 In Internet Explorer 7 some properties (mouse coordinates) are treated as physical while others are logical (offset). This essentially required Web developers to be aware of or calculate the zoom state. In IE8 release all properties are logical. 回答1: You can get it using: var b = document.body.getBoundingClientRect(); alert((b.right - b.left)/document.body.clientWidth); Thanks a lot @niclasnorgren! 回答2: Also, if you need to do check in IE 8, you can use window.screen.deviceXDPI and window

How can I set CSS only for specific IE browsers?

旧巷老猫 提交于 2019-12-17 22:24:38
问题 I have a CSS/jQuery Checkbox style script: http://jsfiddle.net/BwaCD/ The problem is, in current browsers in order for the span to float over the input, the input's position must be absolute. But in IE8 & below, the script will not work and therefore I'm left with and absolutely positioned input that is just floating over other elements. I am not asking for the script to work in IE8 & below. I want to know how I can use CSS to set a specific style if it is IE8 and below. I guess jQuery would

Percentage width child element in absolutely positioned parent on Internet Explorer 7

谁说我不能喝 提交于 2019-12-17 22:12:03
问题 I have an absolutely positioned div containing several children, one of which is a relatively positioned div . When I use a percentage-based width on the child div , it collapses to 0 width on IE7, but not on Firefox or Safari. If I use pixel width , it works. If the parent is relatively positioned, the percentage width on the child works. Is there something I'm missing here? Is there an easy fix for this besides the pixel-based width on the child? Is there an area of the CSS specification

Multiple Internet Explorer instances on one machine [duplicate]

拜拜、爱过 提交于 2019-12-17 18:33:44
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine I am looking for a tool that can allow me to run Internet Explorer 6, Internet Explorer 7 (and Internet Explorer 8 if possible) on my machine. I found something on the Internet like this and some other interesting solutions, but I need your opinion based on experience. Which is the best choice for running multiple

IE7 input:focus

余生颓废 提交于 2019-12-17 18:30:03
问题 I have the following CSS which isn't working in IE7. input:focus{border-width: 2px;border-color: Blue; border-style: solid;} Basically, I just want to set the border attributes when the input is focused. Works in Firefox etc... If anyone could explain why it isn't working in IE 7 and suggest a possible workaround it would be appreciated. Thanks. 回答1: A known answer for this problem is using the following code: sfFocus = function() { var sfEls = document.getElementsByTagName("INPUT"); for (var

Change Password Control RegEx validating oddly in IE 7 only

我们两清 提交于 2019-12-17 17:08:08
问题 I'm using the Asp.net change password control in my application and all seems to be find and dandy until a user tells me she has a problem meeting the strength requirements when changing her password. Looking into this, she is using IE 7 and no matter what she puts in, the validation fails (and ONLY in IE 7. Firefox, IE 8, Chrome etc. all work as expected). Here is the regex i'm using: ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{5,15}$ I've tried out a few others that I've found throughout this

Css attribute selector for input type=“button” not working on IE7

佐手、 提交于 2019-12-17 16:13:54
问题 I am working on a big form and it contains a lot of buttons all over the form, therefore I am trying to get working input[type="button"] in my main css file so it would catch all buttons with out having to add a class to every single one, for some reason this is not working on IE7, after checking on the web it says that IE7 should be supporting this. Also it has to be type="button" and not type="submit" as not all buttons will submit the form. Could anybody give a hint what am I doing wrong?

IE7, IE8 support for css3 media query [duplicate]

折月煮酒 提交于 2019-12-17 07:26:30
问题 This question already has answers here : IE8 support for CSS Media Query (11 answers) Closed 4 years ago . I have tried : @media screen and (max-width:1024px) { .sidebar{width:630px;} } to get the fix for IE7 and 8 but its not working, where as it works for IE9 and other browsers. Is there a different way of writing this. I have tried to include the css3mediaqueries js as well but no success. Is there any support at all for IE7 and IE8? 回答1: Include this meta tag in the <head>. <meta name=