the code compatible with 7 in ie8. It is okay for ie8 in my current windos 7 test, I don't know whether to use the official ie8 version or not.PS Tutorial: If you find that there is still a problem writing by me, please check your html header to see if the previous content is written in such a standard way.This is now a more standard writing method. If you use dreamweaver as a page, this is also the default specification. Remember, if it is not such a standard writing method, compatibility
Simple shopping cart code (a little ajax is used) why is the image displayed normally under ff but not under ie? is it because of ajax code? JScriptcodevarxmlhttp; functioncreateXHR () {try {xmlhttpnewActiveXObject ( quot; Msxm12. simple shopping cart code (a little ajax is used) why does the image display normally under ff but cannot be displayed in ie?
Ie cannot be shown below
Is it a problem with ajax
In IE, we can directly use window. event. keycode to obtain the keyboard code, but this statement is not supported in ff. The followingCodeSo that we can be compatible with them.
InputType= "Text"Value= ""Onkeypress= "Testcode (event )"/>
Because the window object in FF does not have the event attribute (you can directly obtain the window in IE. event), we need to input an event object when calling the
Original link: https://my.oschina.net/u/2344787/blog/400507?p={{page}} 1. Selenium Webdriver The Get method will wait until the page has finished loading before executing, but if the load time is too long it will cause subsequent operations to fail.For example: Get Autohome page will wait for a long time, in fact, the basic elements of the page has been loaded, can be used for subsequent operationsThe time can be set by the Set_page_load_time() method,Then catch the timeout exception and stop th
Today, when you get the option element in select and then convert the option character to an Li character through a regular expression, you can succeed in Chrome FF Opera, or the option character under IE.Use the alert () Pop-up box to print out the printed HTML element tag names in uppercase.That's how it's written:Optionsui = optionsui.replace (/(option)/g, "Li");After the changes are written like this:Optionsui = optionsui.replace (/(option)/gi, "L
However, DOM. style can only access In fact, there are other ways to read the style information. There are two methods, one is through the document. styleSheets object, and the other is through the "final style" object. In IE, this object is called currentStyle, and in FF, this object is called document. defaultView. I packed these two classes and made a function for accessing style information, as shown below:Copy codeThe Code is as follows:// ======
Tip: you can modify some code before running Use JavaScript compatible with IE and FF to control Flash operationsUse JavaScript compatible with IE and FF to control Flash operations与之间-->与之间--> Tip: you can modify some code before running
The same login code, FF no problem, IE is not.
Login page: login.php
A total of three pages, want to open the other two pages, if not logged in, will first jump to the login page.
Enter user name eye password is correct, save to session, this time can browse each page freely, do not need to log in repeatedly.
There is no problem in FF, as expected,
The login page has been displayed in IE and the session ha
Originally is a very simple function, but at the beginning of the time, there are IE can be achieved, FF is always unable to achieve, on the internet to see a half-day, also did not make a reason, so in the help of colleagues, finally out, the compatibility of the browser or the details of the above things, all about the details, I will use the notes marked out.
Here to share the project is a small demand, originally very simple, but the whole of a l
In the construction of the site will often encounter, Div layer by flash block or div layer by video file blocking the situation
In the use of Z-index no effect, and finally found a very concise answer, first recorded to facilitate the same problem to meet the next solution.
Flash solution, the code is as follows:
Focus:
1. 2.
Add wmode= "Transparent" attribute in Video file resolution, the code is as follows:
Description: windowlessvideo= "1″ plus this parameter is very important, in
When using $ ("#id"). attr ("color") gets the color, IE and FF are different. For a simple example:
Copy Code code as follows:
Use $ ("#id"). attr ("color") gets the value "green" in Ff,chrome and the value obtained in IE is "#008000".
So, if you use attr ("color") to determine the current color, consider compatibility needs to determine both the color name and the corresponding color code.
FF Browser
. test{
height:20px;
Background-color:orange;
}
IE7 Browser
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
IE6 Browser
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
The above CSS code shows that FF is still the most obedient browser. In IE6 and IE7 if you want to use hack you must precede with the tag HTML.
Here is a good memory, IE6 plus *html, and IE7 plus *+html,
When you use $ ("# id"). attr ("color") to obtain the color, ie and ff are different. A simple example:Copy codeThe Code is as follows: Use $ ("# id "). attr ("color") gets "green" in ff and chrome, and "#008000" in ie ".Therefore, if you use attr ("color") to determine the current color, you need to determine the color name and corresponding color code considering the compatibility. For example:Copy codeTh
In the CSS forest to discuss a margin problem inadvertently found overflow can also be used to clear floating, hey, this method is not only easy to use, and FF, OP, IE7 all support, from now on can say goodbye to the long compatibility and poor FF clear floating method.
The method is really simple, just add the overflow attribute to the label that needs to be cleared.
CSS Code
Copy the Code code as foll
FF Browser
. test{
height:20px;
Background-color:orange;
}
IE7 Browser
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
IE6 Browser
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
You can see that FF is the most obedient browser through the CSS code above. In IE6 and IE7 if you want to use hack you must precede the tag HTML with the husband level.
Here is very good memory, IE6 plu
Let's learn about CSS alpha transparency today.
Knowledge about CSS alpha transparency. First, look at the following code:
Copy the Code code as follows:
Filter:alpha (OPACITY=50); /* IE */
-moz-opacity:0.5; /* Moz + FF */
opacity:0.5; /* Browsers that support CSS3 (FF 1.5 is also supported) */
Simply explained, IE uses private attribute filter:alpha (opacity), Moz family uses private attribute-moz-opac
the use of Firefox tuning is absolutely no problem, and then I use IE11 to start testing, debug interceptors, and then found a problem, the first time the interceptor acquired the path is/com/ Action.action, but click on the next connection to become/com/com/action.action, each click on a connection will be in front of the method plus a/com,/com is my struts2 namespace, However, when testing under FF, the Interceptor gets a/com/action.action each tim
IE6 can recognize *, but not!important,IE7 can recognize *, can also identify!important;FF does not recognize *, but can identify!important;Background:green!important; Background:orange; *background:blue;Add another, underline "_", IE6 support underline, IE7 and Firefox do not support underline.So we can also distinguish FIREFOX,IE7,IE6:Background:green!important; *background:orange; _background:blue;Note: No matter what method, the order of writing i
FF is slow. It turns out that the atigraphics card driver is playing tricks-Linux general technology-Linux technology and application information. The following is a detailed description. After upgrading a bunch of files, FF becomes 3.0xx, which is so slow that it seems to be terrible. I thought it was a cache problem and increased the cache and found that it was still not good.
An OPERA has been install
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.