internet-explorer-7

how to remove dotted border around the link in IE7

北城余情 提交于 2019-11-28 22:32:16
问题 There is border around button and link when click. could anyone help me solution to remove it. 回答1: It's ugly, but so are most IE fixes. a:focus, *:focus { noFocusLine: expression(this.onFocus=this.blur()); } 回答2: You can preset it like that : :focus{ outline:0; /*removes the dotted border*/ } But remember (for accessibility reasons) to set the style "later" in your CSS file to something more visible. For example : a:focus, a:active{ color:#ff5500; /*different color than regular*/ } input

Javascript to close IE6, IE7, IE8 and Firefox without confirmation box?

↘锁芯ラ 提交于 2019-11-28 20:58:31
Suppose, I want to have a link or a button that when user click it, will close the browser without any confirmation dialog box. It needs to work in Internet Explorer 6, 7, 8 and Firefox. I have done some research and found out that it is not possible to close window/tab in Firefox if that window/tab isn't open through javascript or if the tab has history pages > 1 (i.e. Back button clickable because you browse through webpages). Way to do in Firefox : Delete the history first. Then you can close window without confirmation box. I haven't tried this solution. I happen to read through multiple

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

本小妞迷上赌 提交于 2019-11-28 20:45:35
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. You can get it using: var b = document.body.getBoundingClientRect(); alert((b.right - b.left)/document.body.clientWidth); Thanks a lot @niclasnorgren ! Also, if you need to do check in IE 8, you can use window.screen.deviceXDPI and window.screen.deviceYDPI. The default is 96 dpi, and if you're zoomed, the number will be larger (aka 144 when zoomed 150%

float: right in IE7 dropping to a new line

霸气de小男生 提交于 2019-11-28 20:25:23
I've been stuck on a float issue for a little while so I am hoping the community can help me again. I have a new webform here . As usual it looks fine in everything but IE7 (or IE8 in compatibility). For some reason some of the containers are ending up with the form field on a new line below the form text. CSS is not my strong point, otherwise I'd be able to fix this I am sure. Can anyone tell me what I am missing here? I tried adding float: left to the form text but that ended up with a whole other mess. Try to small change markup: place items with a float before items without it (from the

Google +1 Button not working in IE7?

不问归期 提交于 2019-11-28 20:00:53
Works fine in IE8, IE9, and latest Chrome and Firefox, but can't seem to get it to show up in IE7. This is even with the most basic example of using the script. Anyone had similar issues? Thanks! http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=1151309 Looks like it's not supported. 来源: https://stackoverflow.com/questions/6218789/google-1-button-not-working-in-ie7

Hide scrollbar in IE

久未见 提交于 2019-11-28 19:43:54
问题 In our application for UI we are using JSF or Prime faces for that. We would like to hide the scrollbar for our application, but we are struggling to achieve this in Internet Explorer (We are using IE7). Is there any way to prevent for displaying the scroll bar in Internet explorer? I tried to put overflow: hidden; in CSS,but it's not working. I have tried nearly every node in the DOM and set width / height to 100% , with margin: 0px , padding: 0px . Seems to work great in Firefox, but it

How can I set CSS only for specific IE browsers?

本秂侑毒 提交于 2019-11-28 18:57:51
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 be acceptable if it's necessary, but I don't think it is. I know this can be done with just CSS & HTML

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

独自空忆成欢 提交于 2019-11-28 18:03:56
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 that covers this? The parent div needs to have a defined width , either in pixels or as a percentage. In

Does IE7 have a “developer mode” or plugin like Firefox/Chrome/Safari? [duplicate]

不羁的心 提交于 2019-11-28 17:25:45
Possible Duplicate: Debugging JavaScript in IE7 Firefox has Web Developer plugin and Firebug for troubleshooting html/css/javascript issues. Google Chrome and Safari have a very similar console and right-click options for "Inspect Element". Does IE7 have anything similar for troubleshooting layout/html/css issues? Brian Singh Yes - The Internet Explorer Developer Toolbar Download details: Internet Explorer Developer Toolbar Esteban Küber You can also use Firebug Lite , wich works on IE, Opera and Safari. It's a Javascript implementation that you can load with a simple bookmarklet. As SO doesn

How to detect IE7 with jQuery?

半腔热情 提交于 2019-11-28 16:58:30
How to detect IE7 with jQuery possibly using jQuery.browser? Got a method if ($.browser.msie && parseInt($.browser.version, 10) === 7) { alert('IE7'); } else { alert('Non IE7'); } -- update Please note that $.browser is removed from jQuery 1.9 See $.browser . This feature has been deprecated and you should consider $.support instead. To answer the question, this is a rock solid technique primarily for use in stylesheets but can also be used easily to check browser version, or best still part of a selector. Use the following markup (from HTML5 Boilerplate) <!--[if lt IE 7]><html class="ie6"><!