Alibabacloud.com offers a wide variety of articles about react browser compatibility, easily find your react browser compatibility information here online.
IE low-version browsers and other browsers are generally different, in order to achieve compatibility, you can use the following methods:/* Add event listener for elements compatible with various browsers */if (div.attachevent) {//ie browserDiv.attachevent ("onclick", show);}else{Div.addeventlistener ("click", Show,false);}/* Same reason for element removal event listener compatible with various browsers */if (div.detachevent) {Div.detachevent ("oncli
add font-size:0 to the image's containing layer.20, two block elements, vertical margin value does not increase, will overlap, its spacing is the largest margin value.21,ie6 not supported for!important property22,z-index the bug that does not work:1) IE6 first of all, the first Z-index no matter how high the setting is. There are three conditions for this situation: 1, the parent Tag position property is relative;2, and the problem label contains a floating (float) attribute.2) All browsers: it
varguments this parameter is window:
The code is as follows:
var ret = window.showModalDialog ("sub.html?temp=" +math.random (), window);
In a child window, the following values are:
Browser modal dialog box Window.opener window.dialogarguments returnvalue
ie90undefined [Object window]0
Firefox13.00[objectwindow] [Object window]0
Safari5.10[objectwindow] [Object window]0
Chrome19.0x[objectwindow] Undefinedx
Note that under the Firefox
arrayAlthough this instruction can be performed normally on IE, it is useless to Firefox.Therefore, consider adding the ID of these elements to the additional number x (X for any number), and then using document.getElementById ("myid_x") to save each element one by one in an array after the page is loaded. Property: E.innertext Function: Access the text content of the elementOn IE, you can use E.innertext = "Test text" to specify the content of the element e, but in Firefox, innerText this at
Javascript string browser compatibility problem analysis, javascript string
This article analyzes the compatibility of Javascript string browsers. Share it with you for your reference. The specific analysis is as follows:
First, let's take a look at the incompatible writing method. If I want to obtain the nth digit of a stringCopy codeThe Code is as follows: va
Sogou Browser compatibility mode stop working how to do? Microsoft has pushed a patch for the WIN10 user to fix the Flash bug, which, depending on some user feedback, will crash or die in compatibility mode after installing the patch. Later we found that all IE kernel browsers are affected by the patch, not normal use.
Students who are experiencing this problem
Label: style blog HTTP color ar use for SP Div
360 secure browsers use the IE6/7 mode by default in compatibility mode. Sometimes the Web is only compatible with IE8 or later. The following describes how to adjust the speed mode of the 360 browser compatibility mode:
Set the 360 security browser to open the mode and se
CompatibilityThe problem is that multiple browsers exist at the same time. These browsers sometimes behave differently when processing the same page. This difference may be very small, not even noticed; it may also be very large, or even cause failure to browse normally in a browser. We collectively refer to the problems that cause these differences as "browser compatib
Common browser compatibility issues when you're learning HTML and CSS, you'll always have a lot of browser compatibility issues when you cut graphs every day. Recently, we have been focusing on mobile platform development, regardless of the number of browser
outside the package"3" When the width of the parent element of an absolutely positioned element in the Ie6-browser is odd, the right of the element will have a 1px deviation and the bottom of the element will have a 1px deviation when the height is odd.Form Bug"1" ie6-browser the label tag only supports the For property, does not support only the Resolve uses the For property"2" (input void problem) when t
should be rare (except JavaScript ).
2. process different files.
Why can the same file be processed and written in multiple files for different browsers? This is to fool W3C verification tool. In fact, only two files are required. One is for all browsers and the other is for IE only. write All W3C-compliant code to one file, and some code (such as cursor: hand;) that is required by IE and cannot be verified by W3C is put into another file, use the following method to import data.
The front-e
Yesky software channel 2011-05-26 15:26 Share to:I want to throw up the groove More exciting related articles recommended: Common browser software HTML5 compatibility performance test CSS compatibility tips for IE and Firefox browser finishing CSS hack definition Tips Br
', ' StyleClass ' )Both IE and FF support Object.classname.22. Setting Events with SetAttributevar obj = document.getElementById (' objId ');Obj.setattribute (' onclick ', ' funcitonname (); ');Firefox support, IE does not supportWorkaround:You must use dot capable to reference the required event handlers in IE, and to assign anonymous functionsAs follows:var obj = document.getElementById (' objId '); obj.onclick= This method is supported by all browserstwo or three. Create a radio buttonBrow
coordinate is not clearly defined in msdn, but IE is easier to use from the interface, while safari needs to convert the coordinates.
Iii. CSS
Iv. Layout
V. Plug-ins and ActiveX
As we all know, ie is compatible with third parties
Program ActiveX technology is used, while Firefox, Safari, chrome, and opera adopt the plug-in Technology of npapi. At the interface level, the plug-in interface layers are lower (both are C function pointers), and abstract interfaces and data types are use
For javascript developers, the support of multiple browsers has always been a problem and can only be used after multiple browsers are tested each time. This article introduces some considerations for javascript browser compatibility.
I. appending rows to a table
In your past experiences with Ajax, you may use JavaScript to append rows to an existing table, or create a new table containing table rows from
getattribute () derived from the definition of properties, Firefox, can only use getattribute () derived from the definition of attributes.Workaround: The unification is obtained from the defined attribute through GetAttribute (). input.type attribute problem
Problem Description: IE under the Input.type property is read-only, but Firefox under the Input.type property is read and write.Workaround: do not modify the Input.type property. If you have to modify it, you can hide the original input
The example of this article analyzes the method that jquery solves the browser compatibility problem. Share to everyone for your reference, specific as follows:
Problem:
The Click event that triggers another control imglogin when the user presses the ENTER key when the input control named ABC
In IE document.getElementById (' abc '). Click (); Can call ABC's Click event
But not in FF.
Workaround:
You m
This example describes the jquery browser CSS3 feature-compatible approach. Share to everyone for your reference. The specific analysis is as follows:
CSS3 fully absorbed many years of web development needs, absorbing a lot of novel features. such as Border-radius
One of the most exciting features of CSS3 is the enhancement of selectors, for example, a property selector can select a tag based on a property value, and a location selector can select a
A more serious bug: Under IE6, IE7, the validation hint's style file does not load in.So this morning for this bug, tested several times, still not, finally found that the original is because of the jquery method of dynamic loading CSS tutorial style files, there are compatibility issues.
The code that originally dynamically loaded the CSS file in the Jquery.skygqcheckajaxform.1.3.js file is this:
Load CSS Stylesif ($ ("link[href$=valid.css]")
As: whzeng@126.com
As we all know, IE compatible with Third-party programs using ActiveX technology, and Firefox,safari,chrome,opera is the use of NPAPI plug-in technology.
Both at the interface level, the plug-in interface level is lower (all are C function pointers), abstract interfaces and data types encapsulate the interactive logic of browsers and Third-party programs, but browsers and plug-ins are tightly coupled, while ActiveX masks processes and threading models, and is a loosely coupl
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.