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
Ff and IE use different methods to obtain events:
Ie uses window. event, while FF directly uses the parameter event,
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1. Disable Div selection:$ (Dataid). BIND ("selectstart", function () {// ie disable Div SelectionReturn false;
}Optional (dataid).css ("-moz-user-select", "NONE"); // FF disable Div Selection
2. Window. Close () (all windows opened through window. Open can be closed)
Firefox uses JavaScript: window. Close () to close a click link or a new window. It cannot close a window opened by entering the address bar;
Ie can be disabled directly
3. Event source
Chrome and FF browsers have different row heights by default and must be initialized.
In Chrome, 16px FF is 18px.
Set the height of different rows, auto, 18px 16px
1
TIPS: solve the problem that "FF cannot read outerHTML", ffouterhtml
The DOM attribute outerHTML can be used in IE, Opera, google Chorme, and other browsers, but Firefox does not support this attribute. Although this attribute is not commonly used, however, we still need to use some applications, so it is necessary to implement the outerHTML function under FF.
After reading some articles on the Internet,
', ' Visibility:hidden '); }, ' Onselecterror ': function (file, ErrorCode, errormsg) {$ (' #fileQueue '). attr (' style ', ' Visibility:hidden '); }, ' Onuploadstart ': function (file) {$ (' #fileQueue '). attr (' style ', ' top:200px;left:400p X;width:400px;height:400px;visibility:visible '); } }); });Upload with Uplodify There is also a small problem is that in the FF session will be lost, add the following code in
PHP cookies cannot be deleted. We use setcookie to set and delete cookies in php. it is automatically deleted when it expires. However, you may encounter a cookie that cannot expire in ff. First, let's take a look at the php manual setting and deleting cookies in php. We use setcookie to set the settings and will automatically delete the settings when they expire, but in ff, you may encounter a cookie that
Since the beginning of the Internet, the battle between browsers has never been stopped. Of course, the hardest part is the Web page creator. In order to meet the user experience and availability standards, we have to rush around on multiple browsers for a unified effect. I really hope that FF will be the only one in the world, even though it is still the world of IE. In particular, the latest Internet Explorer 7 released by Microsoft, its CSS compati
Xmlns = "http://www.w3.org/1999/xhtml">
This is the effect in Firefox or opera. This is the effect in IE 6. This is the effect in IE 7. The following is a simple distinction between FF, IE6, and IE7. The text in this line should be red in ff, in IE6, it should be blue, and in IE7 it should be green.
This post was last edited by vic90 on 2013-06-06 16:55:13
browser PHP mysqlThis is my PHP code, I want to get the data table Z_register content, with IE browser can get to, but with Chrome, 360, FF and other browsers are not access to content, with
Chrome, 360, FF and other browsers run, run to mysql_fetch_array a sentence pops up, display login failure, how should you change ah?
$account =$_post["Account
Article provides three kinds of articles on the title too long, control displayed as a method, the following three CSS Tutorial control ellipsis mode display (ie, FF) code, after two are compatible ie,firefox.
div{
The basic definition of width:200px;/* container * *
height:200px;
Background-color: #eee;
}
/* IE under the style * *
P span{
Display:block;
width:200px;/* to the width of the definition, according to the circumstance
the code compatible with 7 in ie8. It is okay for ie8 in my current windos 7 test, I don't know whether to use the official ie8 version or not.PS Tutorial: If you find that there is still a problem writing by me, please check your html header to see if the previous content is written in such a standard way.This is now a more standard writing method. If you use dreamweaver as a page, this is also the default specification. Remember, if it is not such a standard writing method, compatibility
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.