("TD");
cell.innerhtml = "";
Cell.classname = "XXXX";
Row.appendchild (cell);
padding question
padding 5px 4px 3px 1px Firefox can not be explained in shorthand,
Must be changed into padding-top:5px; padding-right:4px; padding-bottom:3px; padding-left:1px;
22. Elimination of UL, OL and other lists of indentationStyle should be written: list-style:none;margin:0px;padding:0px;
Where the margin property is effective for IE, the padding attribute is e
IE and Firefox (Firefox) browser to the JS and CSS support of a few different places:
1.firefox cannot support innertext, nor do I know why. Firefox support innerHTML but do not support innertext, so the Internet check, the original it to support textcontent to achieve innertext, but not so good, the default to the ex
blank line to the table:
var row = Otable.insertrow (-1);
var cell = document.createelement ("TD");
cell.innerhtml = "";
Cell.classname = "XXXX";
Row.appendchild (cell);
padding Problem
padding 5px 4px 3px 1px Firefox can not be explained in shorthand,
Must be changed into padding-top:5px; padding-right:4px; padding-bottom:3px; padding-left:1px;
Elimination of UL, OL and other lists of indentation
Style should be written: list
;padding:0px;
Where the margin property is effective for IE, the padding attribute is effective for Firefox
CSS Transparent
IE:filter:progid:DXImageTransform.Microsoft.Alpha (style=0,opacity=60).
ff:opacity:0.6.
CSS Rounded Corners
IE: Round corners are not supported.
FF:-moz-border-radius:4px, or-moz-border-radius-topleft:4px;-
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml instead if the string does not contain HTML code.2. Prohibit the selection of webpage content:JS: obj. onselectstart = function () {return false;} is generally used in IE ;}
; padding-left: 1px;
26. When the indentation of UL and ol lists is eliminated
Style 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.
27. Transparent CSS
IE: filter: progid: DXImageTransform. Microsoft. Alpha (style = 0, opacity = 60)Firefox: opacity: 0.6
28. CSS rounded corners
IE: rounded corne
Super DragAndGo extension to implement the mouse drag function.In addition, you can use other mouse gesture extensions, such as All-in-One Gestures.
★☆ ------------------------------------★☆
23 Q: Which Folder does the cached files of ff browsed webpages belong?A: It is in the/cache/directory of the Personal Configuration folder by default.
Enter about: config in the address bar.Find browser. cache. disk. parent_directoryDouble-click to change the default location, such as D:/temp/
★☆ ---------
or use Table table, the table in the compatibility of a good performance.4. Mouse StyleFirefox does not support hand, but IE supports pointerWorkaround: Unify the use of pointer5. Padding questionpadding 5px 4px 3px 1px Firefox can not be explained in shorthand,Must be changed into padding-top:5px; padding-right:4px; padding-bottom:3px; padding-left:1px;6. Elimination of UL, OL and other lists of indentationEliminate the UL, OL and other lists of ind
It introduces the practice of ie/Firefox compatibility page commonly used on Web pages, and gives the code, quite practical. In order to facilitate people to read the code, the following with IE instead of Internet Explorer, MF/FF instead of Mozzila Firefox. The following is the point of entry:Window.eventIE: There are window.event objectsFF: No Window.event object. You can pass an event object to a functio
. 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: 1px;
22. When the indentation of ul and ol lists is eliminatedStyle should be written as: list-style: none; margin: 0px; padding: 0px;
The margin attribute is valid for IE and the padd
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml instead if the string does not contain HTML code.
2. Prohibit the selection of webpage content:JS: obj. onselectstart = function () {return false;} is generally used in IE ;}
, 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 );
20. Padding ProblemsPadding 5px 4px 3px 1px Firefox cannot be
attribute is valid for IE and the padding attribute is valid for Firefox.23. Transparent CSSIE: filter: progid: DXImageTransform. Microsoft. Alpha (style = 0, opacity = 60 ).FF: opacity: 0.6.24. CSS rounded cornersIE: rounded corners are not supported.FF:-moz-border-radius: 4px, or-moz-border-radius-topleft: 4px;-moz-
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.