The original page used is innertext, cloud habitat here to replace the innerHTML is to simply support Firefox, because Firefox does not support innertext, but there are ways to let Firefox support InnerText, compatible with the code below.
Copy Code code as follows:
Let Mozilla support innertext
try{
htmlelement.prototype.__definegetter__
(
play in Firefox browser.First check if Firefox installed Flash player, how to check (in Firefox browser watch online video, can play normally, installed. Cannot play will prompt installation! )Second: The Flash file request address should be written in the Web page:/abc.swf?bcastr_xml_url=abc.xml (where Abc.xml is the external XML file requested by abc.swf). If
[Attribute^=value] Usage considerations for the jquery selector under FirefoxA script that was written earlier uses thevar bindattrs = $ ("[databind^= ' attr '", item);We all see the problem, right?This script has been used for some time, but it hasn't been tested under Firefox,Can be used under other browsers!Today, someone suddenly finds that the data loaded under Firefox is incorrect,After a period of de
Use the link as follows. After clicking in Chrome, the behavior is expected, but a new tag card will be opened under IE (according to reference, Firefox has the same problem).After looking for information, found to be resolved as follows.Block browser default event via onclick: or direct: The reason is that three browsers have different processing order for three properties.Chrome Order: onclick, href-and targetIE and
Async default is True, which is asynchronous, $. After Ajax executes, it will continue to follow the footsteps of Ajax until the server side returns data, triggering $. The success method in Ajax. Two threads are executed at this time.
My flash-screen situation is:
The code is as follows
Copy Code
$.ajax ({Type: "Post",URL: "index.php",Data: {},Async:false,Beforesend:function () {},Success:function (data) {//...},Complete:function () {}});
Here, my async i
Customattributedemo (obj)
{
if (Obj.clickcount = = ' 0 ')
{
Obj.clickcount = ' 1 ';
}
Else
{
Obj.disabled = true;
}
}
The above code will fail under Firefox because Firefox has a higher limit on the use of custom attributes and can only access it using the attributes[] collection, Firefox code:
Copy Code code as follows:
Using Python to write a reptile will certainly want to analyze the browser's various behavior, I use the tool is the Firefox browser plug-in Httpfox, the following describes the installation and use of this plug-in method.
First, open the Firefox browser, click on the menu in the upper right corner to open additional components
Second, click on the extension on the left, search Httpfox on the rightAfter t
Normally, we usually capture onkeydown or onkeyup events in input to do some commonly used processing, such as restricting the input of a certain type of characters, or restricting the length of input, and so on.
If you want to capture these onkeydown and onkeyup events in a Div, it is browser-compatible if you bind attributes directly to the nodes such as:
The code is as follows
Copy Code
Then in IE can work, and in
JavaScript gets Event
To start with a simple example, a simple button control is as follows:
Then register the event for it, and in this case, how to get an event in JavaScript, especially Firefox. Please see:
No accident, in the IE/FF, the above example will output input, that is, the trigger Click event node label name, ie, the event access here will not say, the focus of the situation under the FF.
Here the arguments.callee.call
The current version of the open source mobile OS Firefox OS is that the stable version that has been released to the manufacturer is 1.3, the release to be released in perfect functionality is 1.4 (released 25th this month), and the version of the research and development process has just been set to 1.5. The Firefox OS's main source branch on GitHub is already 1.5, and today it is possible to show what has
The Perfect browser-compatible
HR:
height:1px;
Border:none;
border-top:1px solid Black;
margin:0;
*margin:0 0-14px 0;
Float:none;
*float:left;
Display:block;
The 1.hr element is a block-level element that is a box that has border
2. Height:
sizeAnd
Style.height.IEAnd
FirefoxThe size is interpreted and calculated differently, so it's best not to
sizeUse
Height, but there will be a border
Box, so will
Border:none.
FirefoxIt's under.
sizeIt's solid.
Box, not just an ordinary block-lev
Recently, colleagues encountered a problem, the mall Web page when the jump, in Firefox click PageTag jump failed. Test in chrome,360, QQ browser jump normal.
Solution path:
1, in Firefox, Ctrl+shift+a, open the browser component interface
First component, tab optimization, disable. Restart the browser. Browse the Site page again, OK.
2, upgrade your Firefox
In the Android version of Firefox View blog home found in the middle of the font display is very large, began to think is the home page CSS for mobile browser support is not good.
It turned out to be a well-known bug in Firefox for Android:
For the. This is a known bug in Firefox's code to enlarge text to make it more readable on small screens. For details, seehttps://bugzilla.mozilla.org/show_bug.cgi?id=
Summarize the different usage differences of JS in IE and Firefox1. Document.form.item question
Problem:
There are many Document.formname.item ("itemname") statements in existing code that cannot be run under Firefox
Workaround:
Unified use of document.formname.elements["ElementName"]
2. Collection Class object problem
Problem:
IE, you can use () or [] Get collection Class objects, Firefox, can
1. document. form. item Problems (1) existing problems:Many statements such as document. formName. item ("itemName") exist in the existing code and cannot be run in Firefox.(2) solution:Use document. formName. elements ["elementName"]
2. Collection class Object Problems (1) existing problems:In the existing Code, many collection class objects are used (), which is acceptable to IE and cannot be used by Firefox
General view of the individual:
Browsers are not the end of the update, Chrome has completed a big step, it is good, but there is still distance from Firefox. (Of course, if you use the number of people to determine the pros and cons of a software, then I have nothing to say) because the kernel reason Chrome cannot eliminate Firefox, and Firefox needs an opportu
1.doc ument. formname. Item ("itemname ")
Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname. elements ["elementname"].
2. Collection class Object Problems
Note: in IE, you can use () or [] to obtain collection class objects. In Firefox, you can only use
Most web designers and front-end engineers will use Firefox (Firefox), because Firefox's rich web development auxiliary plug-ins can provide us with many good features, such as Html,css,js error, find bugs, and so on. So here are some of the current popular Firefox web development plug-ins.
Development tools
1. Web Developer 1.1.8
Https://addons.mozilla.org/en
Workaround, check the environment:Python 2.7.10Firefox version 46Selenium 2.53.6Note: The Firefox automatic update is turned off, otherwise the selenium use case may not be executed after an automatic upgrade.The error is as follows:Macbookpro:github apple$ Python3 Test.pytraceback (most recent call last): File "/library/frameworks/python.framework/ versions/3.4/lib/python3.4/site-packages/selenium/webdriver/common/service.py ", line-up, in Start Stdo
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.