Kevin's words: Because idiot IE is not compatible with W3C standards, it causes n multi-browser compatibility problems.
Article Is it easy to make web designer? You have to wipe Microsoft's ass all day, FT!
* The following article is transferred from example.
1.doc ument. formname. Item ("itemname ")Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname
See an article on the interpretation of the IE version, the part I can see clearly, I would like to see the note down. There is a more difficult to understand the meaning of "CC" is not "Conditional Comment" shorthand? If you know, please tell me, thank you.
The explanation statement is as follows:
GT = Selects greater than (higher)
lt = Selects less than (below)
GTE = selects greater than or equal to (>=)
LTE = selects less than or equal to (! = Sele
1.doc ument. formname. Item ("itemname ")
Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname. elements ["elementname"].
2. Collection class Object Problems
Note: in IE, you can use () or [] to obtain collection class objects. In Firefox, you can only use [] to obtain collection class objects.Soluti
, IE and Firefox js and CSS
PNG Transparent AlphaImageLoaderFilter:progid:DXImageTransform.Microsoft.AlphaImageLoader (Enabled=benabled,sizingmethod=ssize,src=surl)
Enabled: Options available. A Boolean value (Boolean). Sets or retrieves whether the filter is active. true: Default value. Filter activation. False: Filters are prohibited.Sizingmethod: Options available. String. Sets or retrieves how a picture of a filter's object is displayed within t
1, the discovery of IE under the input label ID attribute the default and name properties are the same, and Firefox must explicitly write out the name of the id attribute, or you can not use the id attribute.
such as: In IE under the following code can be executed and under Firefox but can not:
You must change to the following code to:
The following are reproduced:
1. Document.formName.item ("itemname") q
css| Browser | Web page to see an article on the interpretation of the IE version, picked a part I can see clearly, I would also like to see the note down. There is a more difficult to understand the meaning of "CC" is not "Conditional Comment" shorthand? Please tell me if you know, thank you. .
The explanation statement is as follows:
GT = Selects greater than (higher)
lt = Selects less than (below)
GTE = selects greater than or equal to (>=)
LT
JavaScript compatibility has long been a major problem for Web developers. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox in the following aspects: Javascript compatibility has been a major problem for Web developers for a long time. Many developers suffer day and night due to the differences
JavaScript compatibility has long been a major problem for Web developers. The differences between formal norms, factual standards and various implementations make many developers suffer day and night. To this end, mainly from the following aspects of the differences to summarize IE and Firefox JavaScript compatibility:
Copy Code code as follows:
The difference of function and method;
Second, style access and settings;
Three, Dom me
1. Document.form.item question
Existing issues:
There are many Document.formName.item ("itemname") statements in existing code that cannot be run under MF
Workaround:
Switch to document.formname.elements["ElementName"]
Other
See also 2
2. Collection Class object problemExisting issues:
Many collection class objects in existing code use (), IE can accept, MF cannot.
Workaround:
Use [] as the subscript operation instead. For example: Document.forms ("
In the process of developing a multilingual Java Web site, it is found that many of the code in FF can run normally, but not in IE, and vice versa. The incompatible and unified methods of IE and Firefox (Firefox) in JavaScript are summarized as follows:
1. Firefox-compatible Outerhtml,ff no outerHTML method
Copy Code code as follows:
if (window. HtmlElement) {
htmlelement.prototype.__define
Internet Explorer is replaced by IE and mozzila Firefox is replaced by MF.
1. doctype affects CSS Processing
2. FF: When Div sets margin-left and margin-Right to auto, it is already centered, and IE does not work.
3. FF: when setting text-align for the body, set margin: auto (mainly margin-left, margin-Right) for the DIV to be centered.
4. FF: After padding is set, the DIV will increase the height a
All of a sudden, the layout that looks neat under chrome becomes a mess under IE. To find out why, I changed the div's Background-color attribute. Finally, the width of the same div is found to be different under IE and chrome. This is a big night, it's really creepy!After that, I did a test. When:
CSS Code
The code is as follows
Copy Code
Div1{width:960px;margin:0px;padding:0p
1. There is no outerHTML method in Outerhtml,ff compatible with Firefox.
Copy Code code as follows:
if (window. HtmlElement) {
htmlelement.prototype.__definesetter__ ("outerHTML", function (SHTML) {
var r=this.ownerdocument.createrange ();
R.setstartbefore (this);
var df=r.createcontextualfragment (SHTML);
This.parentNode.replaceChild (Df,this);
return SHTML;
});
htmlelement.prototype.__definegetter__ ("outerHTML", function () {
var attr;
var attrs=this.attributes;
var str
JavaScript compatibility has long been a major problem for Web developers. The difference between formal norms, factual standards, and the existence of various implementations has made many developers suffer day and night. To this end, mainly from the following aspects of the differences in the summary of IE and Firefox JavaScript compatibility:The difference of function and method;Second, style access and settings;Third, Dom method and object referen
1.document.formname.item ("itemname") problem
Note: Under IE, you can use Document.formName.item ("ItemName") or document.formName.elements ["elementname"]; Firefox, you can only use the document.formname.elements["ElementName"].
Workaround: Unify the use of document.formname.elements["ElementName"].
2. Collection Class object Problem
Note: IE, you can use () or [] get the Collection class object; Fir
JavaScript compatibility has long been a major problem for Web developers. The differences between formal specifications, fact standards, and various implementations have made JavaScript compatibility a major problem for Web developers for a long time. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Fi
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml instead if the string does not contain HTML code.2. Prohibit the selection of webpage content:JS: obj. onselectstart = function () {return false;} is generally used in IE ;}Firefox uses CSS:-moz-user-select: Non
1, do not let others reduce IE security
Many times, all kinds of illegal hackers or Trojans are "implanted" through IE browser to the local server system, if the security of IE browser itself is not high, then it can not be the Trojan or hacker program with "immune" ability, In this way, it is very easy to have an illegal attack on the local server system when u
JavaScript compatibility has long been a major problem for Web developers. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox in the following aspects:1. Differences between functions and methods;2. Style access and settings;3. DOM method and object reference;4. event handling;5. compatibility wit
JavaScript compatibility has long been a major problem for Web developers. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox in the following aspects:
1. Differences between functions and methods;2. Style access and settings;3. DOM method and object reference;4. event handling;5. compatibility w
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.