1.firefox cannot support innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to implement innertext, but it also retains the extra space by default. If you do not need to textcontent, if the string contains no HTML code can also be replaced with innerHTML.2. Prohibit the selection of Web content:In IE, generally with js:obj.onselectstart=function () {return false;}and Firef
replace it with innerHTML if the string contains no HTML code.
Prohibit selection of Web page contentIn IE, js:obj.onselectstart=function () {return false;}and Firefox uses Css:-moz-user-select:none
Support for Filters (example: Transparent filters)IE:filter:alpha (opacity=10);firefox:-moz-opacity:.10;
Capturing ev
1.firefox cannot support the innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to achieve innertext, but by default the extra space is retained. If you don't use textcontent, you can replace it with innerHTML if the string contains no HTML code.
2. Prohibit selection of Web page content:
In IE, js:obj.onselectstart=function () {return false;}
and Firefox uses Cs
= imgobj. height + 'px ';20. IE, Firefox, and other browsers have different operations on table labels. in IE, assigning values to innerhtml of table and TR is not allowed. When adding a Tr using JS, the appendchile method does not work.Solution:// Append an empty row to the table:VaR ROW = otable. insertrow (-1 );VaR cell = Document. createelement ("TD ");Cell. innerhtml = "";Cell. classname = "XXXX ";Row. appendchild (cell );21. Padding ProblemsPad
= imgObj. height + 'px ';20. ie, firefox, and other browsers have different operations on table labels. in ie, assigning values to innerHTML of table and tr is not allowed. When adding a tr using js, the appendChile method does not work.Solution:// Append an empty row to the table:Var row = otable. insertRow (-1 );Var cell = document. createElement ("td ");Cell. innerHTML = "";Cell. className = "XXXX ";Row. appendChild (cell );21. padding ProblemsPad
1.firefox cannot support the innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to achieve innertext, but by default the extra space is retained. If you don't use textcontent, you can replace it with innerHTML if the string contains no HTML code.
2. Prohibit selection of Web page content:In IE, js:obj.onselectstart=function () {return false;}and Firefox uses Css:-
add a tr value to js, The appendChile method does not work.Solution:Copy codeThe Code is as follows:// Append an empty row to the table:Var row = otable. insertRow (-1 );Var cell = document. createElement ("td ");Cell. innerHTML = "";Cell. className = "XXXX ";Row. appendChild (cell ); 21. padding Problems Padding 5px 4px 3px 1px FireFox cannot be abbreviated,Must be changed to padding-top: 5px; padding-right: 4px; padding-bottom: 3px; padding-left: 1
validWorkaround:Obj.style.height = imgobj.height + ' px ';Ie,firefox and other browsers for table label operations are different, in IE does not allow the table and TR innerHTML assignment, using JS to add a TR, using the Appendchile method also does not use.Workaround:Append a blank line to the table:var row = Otable.insertrow (-1);var cell = document.createelement ("TD");cell.innerhtml = "";Cell.classname = "XXXX";Row.appendchild (cell);padding que
As a result of work learning needs, many friends often use more than just a computer, if a computer collection of bookmark pages one by one to add to other computers, will be a very troublesome thing, Firefox Firefox bookmark synchronization function can conveniently help us to sync bookmarks data offsite, Here's how to use Firefox
Mozilla
Firefoxis a free, open source browsers for Windows, Linux, and MacOS X platforms, which are small, fast, and have other advanced features, including tabbed browsing, faster surfing on the Internet, pop-up windows, custom toolbars, extended management, and better
SearchFeatures, quick and easy sidebar.
Update log:1. Do not need to select the server (completely automatic)2. Join the Automatic Update function3. Support all intranet users4. Enhanced stability5. The server automatically resta
1px Firefox cannot be abbreviated,Must be changed to padding-top: 5px; padding-Right: 4px; padding-bottom: 3px; padding-left: 1px;
6. unindent ul, ol, and other lists The indent style of the list such as UL and ol should be written as: List-style: none; margin: 0px; padding: 0px;The margin attribute is valid for IE and the padding attribute is valid for Firefox.
7. Transparent CSS IE: filter: progid: DXIma
Mozilla Firefox is a free, Open-source browser that works with Windows, Linux, and MacOS x platforms. It also has some other advanced features, such as tabbed browsing, that can prevent pop-up windows. Built-in phishing protection, change tab browsing behavior, ability to reopen closed tabs, better support Web subscriptions previews and subscriptions, spell checking, support JavaScript 1.7, and more.
Block pop-up windows and annoying pop-up ads say
";
} Else {
Document. getelementbyid ('element'). textcontent = "My text ";
}
19. The statement similar to OBJ. style. Height = imgobj. Height in Firefox is invalid.
Solution:
OBJ. style. Height = imgobj. height + 'px ';
20. IE, Firefox, and other browsers have different operations on table labels. in IE, assigning values to innerhtml of table and TR is not allowed. When adding a Tr using JS,
values to innerhtml of table and TR is not allowed. When adding a Tr using JS, the appendchile method does not work.
Solution:
// Append an empty row to the table:VaR ROW = otable. insertrow (-1 );VaR cell = Document. createelement ("TD ");Cell. innerhtml = "";Cell. classname = "XXXX ";Row. appendchild (cell );
21. Padding Problems
Padding 5px 4px 3px 1px Firefox cannot be abbreviated,
Must be changed to padding-top: 5px; padding-Right: 4px;
";
}
The statements in Firefox that resemble obj.style.height = Imgobj.height are not valid
Workaround:
Obj.style.height = imgobj.height + ' px ';
Ie,firefox and other browsers for table label operations are different, in IE does not allow the table and TR innerHTML assignment, using JS to add a TR, using the Appendchile method also does not use.
Workaround:
Append a blank line to the table:
var row = Ota
Automation testing is the trend of the times, so many testers began to study automated testing, Web Automation testing test is not difficult, but many people are blocked in the environment to build this step, behind the study of passion, here, Tao Brother teach you to build a Firefox browser under the automated test environment (based on Java).Why is it difficult to build an automated test environment, because of the high environmental requirements, t
= "My text ";
}
19. The statement similar to OBJ. style. Height = imgobj. Height in Firefox is invalid.Solution:
OBJ. style. Height = imgobj. height + 'px ';
20. IE, Firefox, and other browsers have different operations on table labels. in IE, assigning values to innerhtml of table and TR is not allowed. When adding a Tr using JS, the appendchile method does not work.
Solution:
// Append an empt
1. document. formName. item ("itemName ") Note: in IE, you can use document. formName. item ("itemName") or document. formName. elements ["elementName"];In Firefox, only document. formName. elements ["elementName"] can be used.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 ca
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.