Solve the problem of "Introducing JS file IE6 Error"
Problem Description:
The page introduces a JS file that defines a function or object, and then calls a function or object in the page, IE6 the "syntax error" or "Missing object". In ie6+ or IE7 it works fine.
Problem Analysis:
This object is present in the JS file being introduced, because browsers abov
First: What's the browser compatibilityBrowser compatibility issues are also referred to as Web compatibility or web compatibility issues, meaning that Web pages may appear inconsistent across browsers, resulting in compatibility issues between browsers and Web pages. In the design and production of the website, do a good job of browser compatibility, to allow the site under different browsers are normal display. For the development and design of the browser software, the better compatibility of
Div + CSS web page layout is a trend, and I began to adapt to this trend. However, when using Div + CSS website design, we should note that CSS styles are compatible with different browsers, especially for webpages fully designed using Div + CSS, you should pay more attention to the CSS style compatibility of IE6 IE7 ff. Otherwise, Your webpage may be messy! I often get overwhelmed by these things, so I found some information on the Internet, added my
Problem Description: The page introduces a JS file, which defines the function or object, and then calls the function or object in the page, IE6 the "syntax error" or "Missing object". In ie6+ or IE7 it works fine. Problem Analysis: This object in the introduction of the JS file is present, because in ie6+ above the browser can run normally. The problem is fi
CSS can refer to the following definition, note order:
The code is as follows
Copy Code
#menu {line-height:23px;} * * Firefox browser to implement this definition#menu {line-height:26px9;} /*ie6,ie7,ie8 This sentence defines the main cusp to IE8 to hack*/#menu {*line-height:23px;} /*ie6,ie7 This sentence defines the main cusp to IE7 to hack*/#menu {_line-height:23px;} /*
IE6, IE7:
Display: inline;
IE is not compatible with Firefox! ImpOrtant
CSS hack: differentiate IE6, IE7, and firefoxDifference between different browsers, CSS hack writing:Difference between IE6 and FF:Backgroundrange; * background: blue;
Difference between IE6 and IE7:Background: green! ImpOrtant; background: blue;
D
Today, there is a very strange problem, is No response under IE6, do not jump to "window.location.href" in the Onclik event.At that time we found an article on the internet quickly solved, but the article does not explain the specific reasons, just say "window.location.href" after adding a "return false", At that time, built a test.html, tried to do, and after the test also found that
The following content is reprint:Code
Copy Code code as follows:
Test Environment Ie6,ie7,firefox 3.
Jumps 1 and 2 are not valid in the IE6 environment, 3, 4, 5 under the ie6,ie7,firefox3.01 test all can pass,.
Jump 4 and 5 are the most concise.
The k
Today, some of the commonly used CSS hack, including commonly used IE hack and Firefox, Chrome, Opera browser hack, and these CSS hack integrated, wrote a small browser tester. :Let's take a look at the code below:HTML section:
1 2 3 4 5 6 7 8 9 10 11 12 13
div class="content"> div class="test">div> div class="txt"> p>IE6下背景颜色:span class="ie6
stay; +background-color:pink; + IE7 fixed; _background-color:orange; _ Dedicated to the magical ie6;: root #test {background-color:purple\9;}: Root is for IE9, a version of the Internet has been circulated: root #test {background-color:purple\0;}, Uh... This one... , the new opera is also known, so the author repeatedly verifies that the final IE9 is: root selec
IE6/7/8 does not support the creation of non-closed format links A and ie6jquery.
The Code is as follows:
Use $ ('
I thought it was a bug of version 1.6.4 (I firmly believe that this writing method is correct). I was surprised when I changed it to version 1.7.0, 1.7.2, 1.8.0, 1.8.3, 1.9.1, and 1.11.1.
You can just close.
var $a = $('
Or
var $a = $('
No problem.
See the document for the following explanations:
After reading it, I know that the n
display and drag-and-drop uploads, compatible with ie6+ and other standard browsersAbout previewingie10+ and other browsers use the HTML5 API, and other browsers use filter previews. It should be noted that ie8+ due to security considerations, will not get the real address of the file, need special treatment.//Generate picture Preview address (HTML5)functionreadasurl (file, callback) {varURL = window. URL | |Window.webkiturl; if(URL)returnCallback (U
Recently in the optimization of Web site floating ads met IE6 does not support the Position:fixed property. The internet collected a solutionThe better solution is to use CSS expressions to solveAdd: CSS expression (CSS expressions), is a way to use the dynamic set CSS properties, and is supported by IE5 above, but the standard mode of IE8 no longer supports CSS expressionsIE7 and above browsers support position:fixed;I wrote a text about a fixed foot
frightened by IE, you will have to endure its endless torment. (IE9 and IE10 are already compatible with support for HTML5 and css3.0)But you have to be thankful that there are many geniuses in this age of your life. Someone has helped you to solve this problem! Although, can not be called perfect!Let's take a look at a few ways to resolve compatible ie6\7\8 does not support HTML5 tags:1. Javascript:document.createElenment ("...")Part of the reason
browser");
}
Program code
Copy Code code as follows:
if (!! Window. ActiveXObject) {
Alert ("IE browser");
}else{
Alert ("Non IE browser");
}
Here are the ways to differentiate between IE6, IE7, and IE8:
Copy Code code as follows:
var isie=!! Window. ActiveXObject;
var Isie6=isie!window. XMLHttpRequest;
var isie8=isie!! Document.documentmode;
var isie7=isie!isie6!isie8;
if (Isie) {
i
the reasons for the bootstrap to find a few, first of all, BOOTSTRAP3 is the mobile device first principle of development, so the reasons may be as follows:1. Remote address is not correctly invokedThat is, as long as the IE9 below, call two dedicated JSBut I test found that only using the above JS file is not OK,2. Incorrect calling methodDo not refer to Respond.min.js or respond.js or CSS files in file://or @import form3. Identify the content of th
: Great God's post summarizes the bootstrap for several reasons, first of all, BOOTSTRAP3 is a mobile device first principle developed, so the reasons may be as follows: 1. The remote address is not called correctly that is, as long as the IE9 is below, call two dedicated JS But I test found that only using the above JS file is not available, 2. Calling method is incorrect do not refer to Respond.min.js or respond.js or CSS files in file
the reasons for the bootstrap to find a few, first of all, BOOTSTRAP3 is the mobile device first principle of development, so the reasons may be as follows:1. Remote address is not correctly invokedThat is, as long as the IE9 below, call two dedicated JSBut I test found that only using the above JS file is not OK,2. Incorrect calling methodDo not refer to Respond.min.js or respond.js or CSS files in file://or @import form3. Identify the content of th
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.