Css:1.The UL tag in FF has a padding value, but there is no margin value, and in IE is the oppositeSolution: The UL padding and margin are set to 0 (also can not 0) such as: Padding:0;margin:0;list-style:none;Another form default in IE will also have margin value, so it is best to set its margin and padding to 0
2.In IE, Cursor:hand can set the mouse to hand shap
Transferred from: http://www.365mini.com/page/css-hack-ie-chrome-firefox-safari-opera.htmIn the current network era, a variety of web pages to show us a rich and colorful web world, and the browser is our view of the Network World window. In the past, browsers mainly have IE and Netscape two, and now, a variety of powerful browser endless. For example: The world-famous browser has chrome, FireFox, Safari, O
1. Object Issue 1.1 form object
Existing problems:
Existing
Code In this way, the form object is obtained through document. Forms ("formname"), which is acceptable in IE and not in MF.
Solution:
Use as subscript. Change to document. Forms ["formname"]
Remarks
In the subscript calculation, formname is ID and name
1.2 HTML ObjectExisting problems:In ie, the ID of the HTML object can be directly used as t
IE for Win7 Developer Preview Browser is Microsoft's Win7 system platform for the release of the Internet Explorer 11 browser pre-release version, it is more than IE 10 browsers in browser performance and computer privacy protection have some improvement. The release of the IE for Win7 Developer Preview will fulfill Microsoft's commitment to bring
Overview
If you get tired of it. For low version IE write smelly and long hack,ie condition annotation will be a more graceful solution. Of course, the function of the conditional annotation is more than just those features, in addition to evading the disgusting hack, it can also be used for different IE versions (Ie5.5-9,ie10 do not support conditional annotati
In the process of learning and applying Web standard Web pages, the compatibility of Web pages to browsers is a problem that is often contacted. Because Microsoft's Internet Explorer (IE) occupy the majority of the browser market, in addition to Firefox, opera and so on. These browsers need to be compatible.
At the same time, in terms of IE, as a result of the upgrade of
Internet Explorer is replaced by IE and mozzila Firefox is replaced by MF.
1. Document. Form. Item Problems
(1) existing problems:
Existing
Code There are many statements such as document. formname. Item ("itemname"), which cannot be run in MF.
(2) solution:
Use document. formname. elements ["elementname"]
(3) Others
See 2
2. Collection class Object Problems(1) existing problems:In the existing Code, many collection class objects are used (), whi
float doubles the margin set under IE. This is a bug that exists in a IE6. The solution is to add display:inline to this div;For example:The corresponding CSS is#imfloat {Float:left;Margin:5px;/*ie understood as 10px*/Display:inline;/*ie under the 5px*/} 3. Double the distance generated by the floating IE#box {float:
---- 1. Introduction
---- How to perform operations on objects in IE browser is very practical. Through DLL bound to IE, we can record the order of Web Pages browsed by IE, analyzes users' usage behaviors and modes. We can filter and translate the content of the webpage, and automatically fill in the Form Content that users often need to fill in on the webpage.
"object/feature" to determine the way the browser capabilities. The following addevent code is used in this way ... AddEventListener is the standard format for the DOM, while IE uses its own unique attachevent.
Add Event Tool function
function Addevent (el,type,handle) {
if (el.addeventlistener) {//for standard browses
El.addeventlistener (Type,handle,false);
}else if (el.attachevent) {//for IE
El.at
A summary of some of the CSS in FF and IE under the difference! may not be complete, will be supplemented in the future.
Firefox:div set Margin-left, Margin-right is already centered when auto, IE not
Firefox:body set Text-align, Div needs to set Margin:auto (mainly margin-left,margin-right) to center
FireFox: Set padding, div will increase the height and width, but
We know that browsers have bugs, and Le on Windows seems to have more bugs than most browsers. One of the reasons Ie/win's clothing is different from other browsers is that the display engine uses an internal concept called layout. Since the cloth is a concept specifically for the internal working of the display engine, it is not necessary to understand it under normal conditions. However, the layout problem is that many
CSS compatibility with the browser is sometimes a headache, perhaps when you understand the techniques and principles, it will not be difficult, from the online collection of ie7,6 and FIREOFX compatibility processing skills and collation. For web2.0, please try to write the code in XHTML format, and DOCTYPE affect the CSS processing, as the standard, must add DOCTYPE declaration.CSS TipsVertical centering problem for 1.divVertical-align:middle; Increase the line spacing to as high as the whole
1. Differences between CSS parsing in IE and Firefox
This is some of my experience in use. I hope you can continue with it.
High Resolution
IE: the actual height will be used even if the height of the image content is defined based on the height change of the content, including the undefined height of the image content, when the content exceeds the height
Firefox: when no height is defined, if the image co
Frequently asked questions in JavaScript1. Collection Class object Problem
Many collection class objects in existing code use (), IE can accept, Firefox can not.
WORKAROUND: Use [] as the subscript operation instead. For example: Document.forms ("FormName") instead
JS code document.forms["FormName"]; Another example: Document.getelementsbyname ("InputName") (1); Change to Document.getelementsbyname ("InputName") [1];
document.forms["FormName"];
Anoth
With IE Kernel browser friends, may inadvertently encounter such a problem:When you open a webpage, the browser "bang" jumps out of a prompt box "Internet Explorer cannot open Internet sites ... The operation was terminated. In most cases, the page may even appear to be loaded and finished, and the content will be fully displayed. Just why are these hints still appearing?! Even more annoying is the point after the confirmation of the prompt, the page
With IE Kernel browser friends, may inadvertently encounter such a problem:When you open a webpage, the browser "bang" jumps out of a prompt box "Internet Explorer cannot open Internet sites ... The operation was terminated. In most cases, the page may even appear to be loaded and finished, and the content will be fully displayed. Just why are these hints still appearing?! Even more annoying is the point after the confirmation of the prompt, the page
1. Document.formName.item ("ItemName") issuesDescription: Under IE, you can use Document.formName.item ("ItemName") or document.formname.elements["elementname"];Under Firefox, you can only use document.formname.elements["ElementName".Workaround: Use document.formname.elements["elementname" uniformly.2. Collection Class object issuesDescription: Under IE, you can use () or [] get the Collection class object;
With IE Kernel browser friends, may inadvertently encounter such a problem:When you open a webpage, the browser "bang" jumps out of a prompt box "Internet Explorer cannot open Internet sites ... The operation was terminated. In most cases, the page may even appear to be loaded and finished, and the content will be fully displayed. Just why are these hints still appearing?! Even more annoying is the point after the confirmation of the prompt, the page
Article Introduction: Transparency properties are a very common and popular attribute in CSS and are now widely supported by major browsers, but unfortunately IE6/7/8 does not support this attribute. Although IE does not support this CSS property, we can achieve the same effect by using the Filter filter property of IE specific.
Opacity Transparency
Transparency properties are a very common and p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.