In the construction of the site will often encounter, Div layer by flash block or div layer by video file blocking the situation
In the use of Z-index no effect, and finally found a very concise answer, first recorded to facilitate the same problem to meet the next solution.
Flash solution, the code is as follows:
Focus:
1. 2.
Add wmode= "Transparent" attribute in Video file resolution, the code is as follows:
Description: windowlessvideo= "1″ plus this parameter is very important, in
When using $ ("#id"). attr ("color") gets the color, IE and FF are different. For a simple example:
Copy Code code as follows:
Use $ ("#id"). attr ("color") gets the value "green" in Ff,chrome and the value obtained in IE is "#008000".
So, if you use attr ("color") to determine the current color, consider compatibility needs to determine both the color name and the corresponding color code.
FF Browser
. test{
height:20px;
Background-color:orange;
}
IE7 Browser
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
IE6 Browser
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
The above CSS code shows that FF is still the most obedient browser. In IE6 and IE7 if you want to use hack you must precede with the tag HTML.
Here is a good memory, IE6 plus *html, and IE7 plus *+html,
Add the following code to the Internet Explorer 6 and Internet Explorer 7: window. external. addFavorite (sURL, sTitle); note: the first letter a of addFavorite is not in uppercase! Even if Microsoft uses uppercase letters for reference, it is better than words. Add to favorites code for Firefox: method 1, lt; ahref quot; http... IE6, and IE7 add to favorites code:
Window. external. addFavorite (sURL, sTitle );
Note:
The first letter a of addFavorite is not capital! Even if Microsoft uses uppe
Copy codeThe Code is as follows:Awbpre:Awbno:When you click the Add button, Add two input boxes to the page dynamically and assign values to the two newly added input boxes. IE 6, 7, 8, 9 (compatible mode) runs normally, see the following:But in FF, Chrome, and IE9 (incompatible mode), it is incorrect:Change the add () methodCopy codeThe Code is as follows:That's right,The difference between the two is:The first method is to add values to the dom tree
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 instructions on deleting cookies in the php manual.
Bool setcookie (string name [, string value [, int expire [, string path [, string domain [, bool secure])
To delete a cookie, you must ensure that its expiration time is in the past to trigger the deletion mechan
;}
The effects of the above Code implementation in IE7-IE9 and Chrome is no problem, but in IE10, FireFox, Opera is not so ideal, for this problem, we can use a Jquery-based plug-in grayscale. js to achieve, so that you can be compatible with IE10, FF and Opera.
Download the grayscale. js Plugin: Click to download
Download jquery Library: Click to download
To download the latest version, go to the official website:
Http://james.padolsey.com/jav
This article mainly introduces in detail the differences between javascript obtaining web pages and window sizes under IE and FF. If you need it, you can refer to it, I hope this will help you in the newly defined standard document.doc umentElement. clientHeight can get the correct value in IE and Firefox. The following article details the differences in obtaining the visible window size of various browsers:
;Filter:Progid:DXImageTransform.Microsoft.AlphaImageLoader (src= './btn.png ', sizingmethod= ' scale ') \9; }Once you have defined the above CSS, you can use it in the page, for example:In the. BTN_BG style: Width and height define the default width of the background map, and if the div that does not define and references the style does not define the width, the width of the background map stretches to the width of the browser, and the width of the div can be specified to stretch the background
Here first set the style of the label (I use only 3 pictures here, can be added according to their own situation)1 Then the JS code:123 45View CodeAnd finally the DOM element.1 body>2 DivID= "Showimg">3 DivID= "Nav">4 ul>5 the URL attribute and the N attribute are added myself, for programming convenience, the label itself does not have these attributes, note that the URL here is based on the actual location of the picture you place to set the value -6
1.Firefox outerhtml, InnerText, Outertext properties for DOM objects are not supportedWorkaround reference: http://w3help.org/zh-cn/causes/SD90172. Only the CreateElement method in IE supports incoming HTML String argumentsWorkaround reference: http://w3help.org/zh-cn/causes/SD90103.IE confuses DOM object properties and HTML tag attributes (attribute), resulting in incorrect implementation of SetAttribute, getattributeWorkaround reference: http://w3help.org/zh-cn/causes/SD9006About the differenc
Why is drinking water poisoned?Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water poisoned? Why is drinking water
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.