How does FF change to full screen? (Not the F11 style)-Linux general technology-Linux technology and application information. The following is a detailed description. I don't know what the key is or what it is, FF suddenly becomes full screen, but unlike pressing F11 full screen (I press F11 here and the window is full screen and only the tab bar is retained ), it only hides the outer border of the window (
Because FF's default font is, and the default browser settings ignore the font definition in CSS. Therefore, if you do not specify the font of the FF in CSS, the styles of the two browsers will definitely be different [the premise is that you have not changed the default settings of the FF browser, so that it can be defined with the CSS font].
Other summary:
1. P labels in IE and
Event is an object that comes with ie, but ff does not have this object. You can only simulate the event by passing parameters. The following briefly introduces that event is an object that comes with ie, this object does not exist in ff. You can only simulate the event by passing parameters.
In addition, srcElement is used in ie to obtain the event trigger source, and target is used in
Window.event
IE: There are window.event objects
FF: No Window.event object. You can pass an event object to a parameter of a function. such as Onmousemove=domousemove (event)
Mouse Current coordinates
Ie:event.x and Event.y.
FF:event.pageX and Event.pagey.
General: Both have Event.clientx and Event.clienty attributes.
The current coordinates of the mouse (plus the distance the scroll bar rolls over)
IE:event.offsetX and Event.offsety.
FF:event.layerX
is set; Margin-left:auto; ”What needs to be explained is that if you want to use this method to make the entire page centered, it is recommended not to be nested in a div, you can split out a number of Div, as long as in each split div defined margin-right:auto; Margin-left:auto; It's OK.3 box models differ explained.
The code is as follows
Copy Code
#box {width:600px;For ie6.0-width:500px;For ff+ie6.0}#box {Width:600px!i
Web pages about CSS compatibility with each browser has been a cliché, the network of tutorials everywhere. The following content is not too novel, purely personal summary, I hope to have some help for beginners.
First, CSS HACK
The following two methods can solve almost all hack today.
1,!important
With the support of IE7 to!important, the!important method is now targeted only at IE6 hack. (Note the wording. Remember that the claim position needs to be advanced.)
2, Ie6/ie77 to Firefox
*
Compatible with IE6, IE7, FF min-height minimum Heights in CSS
#mrjin { background: #ccc; min-height:100px; /* Height minimum value set to: 100px*/ height:auto!important;/* compatible FF,IE7 also support!important label */ height:100px;/* Compatible ie6*/ overflow:visible;} Max width ... The main browser IE is not supported for Max-width, the setting of this property is invalid in IE. The
On the CSS for each browser compatibility has been a cliché, the network of tutorials everywhere. The following content is not too novel, purely personal summary, I hope to have some help for beginners.
First, CSS HACK
The following two methods can solve almost all hack today.
1,!important
With the support of IE7 to!important, the!important method is now targeted only at IE6 hack. (Note the wording. Remember that the claim position needs to be advanced.)
2, Ie6/ie77 to Firefox
*+html and
The way of the search for the project in the classification is dynamically generated by JS, each generated elements to dynamically add properties, events. The addition of attributes can be assigned in a way that is applicable to both IE and ff. Like what:
var element = document.createelement (' select ');
Element.id = "Myselect";
The above statement will have the same effect in IE and FF, and it works fi
1. today, I suddenly thought that the time for the jquery benefits is useless. I just practiced it. Who knows, I met the problem of jquery's difference in IE and FF browsers. I don't have to talk about it anymore, let's take a look at the problem.2. Most of those who have used jquery know that the effect of viewing on FF is just the same, but the effect of these just-obtained results is unsatisfactory in IE
$ _ Session why I saved garbled characters in ie, but ff and chrome are normal. I posted a post for help a few days ago, but it was fruitless. (The problem is that ie is not displayed, and ff and chrome are normal) I tried to echo $ _ SESSION [ quot; goodsid quot;] and found that the session in ff is yuan 002 $ _ session. Why are Chinese characters garbled in ie
The search category in the Easy Search project is dynamically generated by JS, and each generated element must dynamically add attributes and events. You can assign values to attributes, which is applicable to IE and ff. For example:
VaR element = Document. createelement ('select ');
Element. ID = "myselect ";
The preceding statement has the same effect in IE and FF and runs normally. However, most of the e
None of them will work. The perfect solution is to execute scripts on IE + ff.
Cause:
Recently, irrigation is often performed in water sources. The most common task in water sources is to receive points.
Occasionally, I am also able to share points (not how to scatter, not how to answer ).
When points were received, they saw that the building was a little uncomfortable (they scored multiple stars ). It is no wonder that there are so many floor pasters
1. today, I suddenly thought that the time for the jquery benefits is useless. I just practiced it. Who knows, I met the problem of jquery's difference in IE and FF browsers. I don't have to talk about it anymore, let's take a look at the problem.
2. Most of those who have used jquery know that the effect of viewing on FF is just the same, but the effect of these just-obtained results is unsatisfactory in I
IE6, 7,8, FFCompatible table
Test code: style code: P {color: # f00;} XHTML code:
IE6
IE7
IE8
FF
Remarks
P {_ color: Red}
√
×
×
×
Dedicated for IE6
* Html p {color: # Red ;}
√
×
×
×
Dedicated for IE6
P {+ color: Red}
√
√
×
×
Dedicated for IE6 and 7
P {* color: Red}
√
√
×
×
Dedicated for IE6 and 7
* Html p {color: red ;}
First attach a document: IE6 IE7 IE8 hack test official documentation: http://msdn.microsoft.com/en-us/library/cc351024 (vs.85). aspx
There have been many ways to make IE6 support transparent PNG on the Internet. However, the problem is that IE7 and IE8 are annoying now, and those methods are not compatible with new browsers (including repeated rendering, such as the original 50% transparency, after repeated rendering, it becomes opaque ......)
To solve this problem, I have installed IE6 IE7 IE
].getelementsbytagname ("input") [1].value.replace (/\s+$/g, "") = =
Table.rows[p].cells[1].getelementsbytagname ("input") [1].value.replace (/\s+$/g, ""))
{Alert ("Part of part has duplicate items and cannot be saved!") "); return false;}
}
}
return true;
}
Whether the Var dialogwin;//part window is open
Selected parts
function Selectlj (o) {
if (Dialogwin = = null) {
SelectRow = o.parentnode.parentnode;//Assign rows to global variables
var cpxh = selectrow.cells[1].getelementsbytag
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
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.