1, we open Google's Chrome browser, and then : Right click on the Ublock icon , click the option to enter settings.
2, if it is the FF browser, we click on the FF Browser: Menu-Additional components-extended-ublock Option-Display control Panel .
4, okay, and then we enter the Ublock settings, click the "third party rules list " effect as shown in the following image
5, i
Window. EventIE: window. event objectFF: There is no window. event object. You can pass the event object to the function parameters. For example, onmousemove = domousemove (Event)Current mouse CoordinateIE: event. X and event. Y.FF: event. pagex and event. Pagey.Generic: both have the event. clientx and event. clienty attributes.
The current coordinates of the mouse (plus the scroll bar rolling distance)IE: event. offsetx and event. offsety.FF: event. layerx and event. layery.Coordinates of tag
What is the core of the current master browser?1) Trident:ie Browser uses the kernel, the kernel program in the 1997 IE4 for the first time, is Microsoft in the Mosaic code based on the modified, and continue to the current IE7. Trident is actually an open kernel, its interface core design is quite mature, so there are many using IE kernel and not IE browser emerged (such as Maxthon, TheWorld, TT, Greenbrowser, Avantbrowser, etc.).2) Geckos:netcape6 began to adopt the kernel, the later
This article is an example of the difference between IE browser and FF browser when the value of an ajax pass parameter is Chinese. Share to everyone for your reference, specific as follows:
JavaScript is based on Ajax callback function transfer parameters, here is mainly to analyze the Ajax transfer Chinese parameters in the process of different browsers for the garbled processing method.
Ajax pass parameters for Chinese when garbled, I encountered
First look at the software's operating interface:
The code on the left is HTML, the right is the jquery code, while supporting code folding, syntax highlighting (but there is no code hint, feeling a bit uncomfortable, but the use of jquery for a long time the basic familiarity should be indifferent), after writing well, you can directly press F5 can see the actual effect, At the same time you can click on the Chrome,ff,ie button below to see the actu
Today in doing a blog forwarding function, like the Sina Weibo broadcast of that function, there is a textarea, that is, we send a meager box, others have a meager button, when we click on the forwarding button, his meager will enter into the textarea, What looks like a very simple text box assignment is, in fact, the difficulty is that the cursor is positioned at the front.
So he searched the Baidu,google and found the
The method below IE
Copy Code code as follows:
var Tea=docu
Article Introduction: The similarities and differences of createelement in each browser.
When we create an element node using the Createelemen method, other browsers such as IE and FF will be different.
If we create an INPUT element, under IE, we can have a variety of ways:
All of the above 3 ways in IE can be used, and then no more than IE core browser (such as FF,OP,SF, etc.), the first 2 kin
issuesIE:filter:progid:DXImageTransform.Microsoft.Alpha (style=0,opacity=60).ff:opacity:0.6.[note] It is best to write all two, and put the opacity attribute below.Two or three, CSS fillet problemIe:ie7 The following versions do not support rounded corners.FF:-moz-border-radius:4px, or-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;- moz-border-radius-bottomleft:4px;-moz-border-radius-bottomright:4px;.[note] The fillet problem is a classic problem in CSS, and it is recommended to
it, IE and FF are both successful!
Share the code
The Code is as follows:
Function locatePoint (){Var aCtrl = document. getElementById ("txtContent ");If (aCtrl. setSelectionRange ){SetTimeout (function (){ACtrl. setSelectionRange (0, 0); // positions the cursor at the beginning of textarea. If you want to locate another position, modify it.ACtrl. focus ();}, 0 );} Else if (aCtrl. createTextRange ){Var textArea = document. getElementById ("txtCont
JS gets the value from the style sheet function in IE using currentStyle and firefox ultview in firefox. For more information, see. However, DOM. style can only be accessed.
In this way, the built-in style in the label, if the style is written in
In the. CSS file, you can read the style.
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 call
To meet project requirements, I used an iframe highly adaptive function. I searched google for a long time and found some modifications. You can test it. Find the following js
The Code is as follows:
Function SetCwinHeight (obj){Var cwin = obj;If (document. getElementById){If (cwin ! Window. opera){If (cwin. contentDocument cwin. contentDocument. body. offsetHeight)Cwin. height = cwin. contentDocument. body. offsetHeight + 20;Else if (cwin. Document cwin. Document. body. scrollHeight)Cwin.
Recently, I am working on a multi-File Upload component, which has been implemented in IE and can be used to dynamically add uploaded attachments. however, in the next test of FF, no response was found. I used insertadjacenthtml. no way. note that there is an insertadjacenthtml method compatible with FF in ext2. copy the file.
Function inserthtml (where, El, HTML ){
Where = where. tolowercase ();
If (El. in
This article mainly introduces how to disable the browser input box and automatically complete compatibility with mainstream browsers such as IE, ff, and chrome. For more information, see. Hope to help you
The Firefox and IE browsers each implement the input history function, which simplifies the input troubles. However, sometimes the pop-up drop-down box blocks the content displayed on the page, in some cases, you do not need to record the input box
Set and delete cookies in PHP we use Setcookie to set them up and automatically delete them when they expire, but under FF you may encounter cookies that cannot expire.
First, let's take a look at the instructions in the PHP manual for deleting cookies.
BOOL Setcookie (string name [, string value [, int expire [, String path [, string domain [, bool secure]]])
To delete a cookie, you need to ensure that its expiration period is in the past before it t
Because access styles are often used to write JS files, we often use Dom. style. xxx to read and write style information. 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 t
A project we are working on today found a small flaw in the test under Firefox. Eventually locked inMargin-topImpact under ff.
This is why I foundMargin-topIn FF YingjingIneffectiveI think this is not easy. Can I directly change the padding-top.
HoweverParentThere is a background image. It is useless to change it to padding-top. How can this problem be solved. I decided to try other ones. After al
FF Browser
. Test {
Height: 20px;
Background-color: orange;
}
Internet Explorer 7
* + Html. Test {/* IE7 */
Height: 20px;
Background-color: blue;
}
Internet Explorer 6
* Html. Test {/* IE6 */Height: 20px;Background-color: black;}
Through the above CSSCodeWe can see that FF is the most obedient browser. In IE6 and IE7, if you want to use hack, you must add the class tag HTML to the front.This i
Today we will learn about CSS Alpha transparency.
Knowledge about CSS Alpha transparency. See the following
Code :
Copy code The Code is as follows: filter: alpha (opacity = 50);/* ie */
-Moz-opacity: 0.5;/* Moz + FF */
Opacity: 0.5;/* supports css3 browsers (FF 1.5 is also supported )*/
Internet Explorer uses the private attribute filter: alpha (opacity), Moz family uses the Private Attribute-moz-opacit
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.