Ff and IE use different methods to obtain events:
Ie uses window. event, while FF directly uses the parameter event,
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1. Disable Div selection:$ (Dataid). BIND ("selectstart", function () {// ie disable Div SelectionReturn false;
}Optional (dataid).css ("-moz-user-select", "NONE"); // FF disable Div Selection
2. Window. Close () (all windows opened through window. Open can be closed)
Firefox uses JavaScript: window. Close () to close a click link or a new window. It cannot close a window opened by entering the address bar;
Ie can be disabled directly
3. Event source
Chrome and FF browsers have different row heights by default and must be initialized.
In Chrome, 16px FF is 18px.
Set the height of different rows, auto, 18px 16px
1
TIPS: solve the problem that "FF cannot read outerHTML", ffouterhtml
The DOM attribute outerHTML can be used in IE, Opera, google Chorme, and other browsers, but Firefox does not support this attribute. Although this attribute is not commonly used, however, we still need to use some applications, so it is necessary to implement the outerHTML function under FF.
After reading some articles on the Internet,
', ' Visibility:hidden '); }, ' Onselecterror ': function (file, ErrorCode, errormsg) {$ (' #fileQueue '). attr (' style ', ' Visibility:hidden '); }, ' Onuploadstart ': function (file) {$ (' #fileQueue '). attr (' style ', ' top:200px;left:400p X;width:400px;height:400px;visibility:visible '); } }); });Upload with Uplodify There is also a small problem is that in the FF session will be lost, add the following code in
PHP cookies cannot be deleted. We use setcookie to set and delete cookies in php. it is automatically deleted when it expires. However, you may encounter a cookie that cannot expire in ff. First, let's take a look at the php manual setting and deleting cookies in php. We use setcookie to set the settings and will automatically delete the settings when they expire, but in ff, you may encounter a cookie that
Since the beginning of the Internet, the battle between browsers has never been stopped. Of course, the hardest part is the Web page creator. In order to meet the user experience and availability standards, we have to rush around on multiple browsers for a unified effect. I really hope that FF will be the only one in the world, even though it is still the world of IE. In particular, the latest Internet Explorer 7 released by Microsoft, its CSS compati
Xmlns = "http://www.w3.org/1999/xhtml">
This is the effect in Firefox or opera. This is the effect in IE 6. This is the effect in IE 7. The following is a simple distinction between FF, IE6, and IE7. The text in this line should be red in ff, in IE6, it should be blue, and in IE7 it should be green.
This post was last edited by vic90 on 2013-06-06 16:55:13
browser PHP mysqlThis is my PHP code, I want to get the data table Z_register content, with IE browser can get to, but with Chrome, 360, FF and other browsers are not access to content, with
Chrome, 360, FF and other browsers run, run to mysql_fetch_array a sentence pops up, display login failure, how should you change ah?
$account =$_post["Account
Article provides three kinds of articles on the title too long, control displayed as a method, the following three CSS Tutorial control ellipsis mode display (ie, FF) code, after two are compatible ie,firefox.
div{
The basic definition of width:200px;/* container * *
height:200px;
Background-color: #eee;
}
/* IE under the style * *
P span{
Display:block;
width:200px;/* to the width of the definition, according to the circumstance
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
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.