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
*
Solution to the problem that the bootstrap icon cannot be displayed in firefox (ff), firefoxbootstrap
Recently, I encountered a problem in a bootstrap-based project. The problem is that the built-in "glyphicon" icon cannot be displayed, A small square is displayed in the reference of the icon, and four seemingly hexadecimal characters are faintly visible in it ,:. Good-end, ready-to-use icons are useless, sad ~
However, chrome and IE 10 can be nor
How to tell the browser typeExt.: http://www.cnblogs.com/carekee/articles/1854674.html1. getboxobjectfor Opera's Window.opera Safari's opendatabase chrom via browser-specific objects such as IE's ActiveXObject ff What's interesting about e Messageevent is that Chrome's useragent also includes Safari features, which is perhaps the basis for Chrome to run all Apple browser apps .2. Use the Agent keyword combined version to determineIntroduction to JS
This is an article about CSS hack, the CSS hack mentioned in this article is for the class, the ID of the attribute hack, the order of arrangement has requirements. Today we are talking about the CSS HACK for class and ID.
Copy CodeThe code is as follows:
. test{/*ff*/
height:20px;
Background-color:orange;
}
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
Through the above CSS
HTML code:CSS code:div{Basic definition of width:200px;/* container */height:200px;}/* Style under IE */P span{Display:block;width:200px;/* definition of width, modified according to situation */Overflow:hidden;White-space:nowrap;Text-overflow:ellipsis;}/* Style under FF */P{clear:both;}P span{Float:left;max-width:175px; /*ie cannot interpret this property , and FF can */}p:after{Content: "...";}Turn CSS si
$_session Why IE save Chinese characters garbled, ff,chrome but all normal
A few days ago sent a post for help, no fruit, (the problem is IE film can not be displayed, FF and chrome under normal)
Try the echo $_session["Goodsid" yourself,
Found
FF display session for [email protected]@ yuan 004@ kanji display Normal,
[Email protected]@?004@, the Chinese character
Source: http://hi.baidu.com/wr5532/blog/item/b3546037ca99423c0b55a96a.html
Dialog Box with confirmation:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Script > If (Confirm ( " Are you sure you want to close this page? " )){Self. Opener = Null ;Self. Open ( '' , ' _ Self ' );Self. Close ();} Script >
Close directly without prompting:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Co
This is an article about CSS hack.
Article The CSS hack mentioned in this article is for the hack of the attributes in class and ID, and the order of arrangement is required. Today I want to talk about CSS hack for class and ID.
CopyCode The Code is as follows:
. Test {/* FF */Height: 20px;Background-color: orange;}* + Html. Test {/* IE7 */Height: 20px;Background-color: blue;}* Html. Test {/* IE6 */Height: 20px;Background-color: black;}
Through
Summary of the inconsistency between paths in IE and FF browsers using window. location. href
I encountered a problem last Friday. I used Firefox when I was working on a project. Last week, I completed the function of a small forum because I did not need to log on to the Forum, user logon is required only when posting and replying. Therefore, an interceptor is added to the system. If you do not log on to the system, the logon page is displayed, after
Js-compatible with IE, FF, Chrome, Opera, and Safari music players, chromesafari
This article describes how to implement JavaScript music players compatible with IE, FF, Chrome, Opera, and Safari. Share it with you for your reference. The specific implementation method is as follows:
/** Music player * @ param obj player id * @ param file audio file mp3: ogg: * @ param loop */function audioplayer (id, file,
CSS compatibility with various browsers is already a common issue, and tutorials on the Internet are everywhere. The following content is not too novel. It is a personal summary and I hope it will be helpful for beginners. I. CSS hack The following two methods can solve almost all today's hack. 1 ,! Important With IE7! Important Support ,! The important method is only for the hack of IE6. (note the writing method. Remember to advance the declaration position .)2, IE6/ie77 for Firefox * + HTML
This dongdong implements some commonly used function, today just completes, everybody gives the point suggestion more!
Under the FF imperfect, some features have not yet been realized!
This is also I wrote the first editor (OH), do not do well, do not throw eggs over ...
Let's Go!
Copy Code code as follows:
/*******************************************
The best freeeditor in a litter (2006-08-22)
This JavaScript is writen by CXP.
*******
Last time I measured FF webdriver loading firefoxhttp://www.cnblogs.com/tobecrazy/p/3997375.htmlSo the question is, since the ability to load Firebug can be activated directly at runtime FirebugThe effect is as follows:For this situation, we have two kinds of solutionsMethod 1: Use the Firebug shortcut key F12 Activate FirebugHowever, this requires using the SendKeys method of the Actions class, and using the SendKeys methods, do not forget to add the
This is an article about CSS hack, this article refers to the CSS hack is for class, id the attributes of the hack, the order of arrangement are required. Today to talk to you about class, id do CSS HACK.
Copy Code code as follows:
. test{/*ff*/
height:20px;
Background-color:orange;
}
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
When using $ (#id). attr (color) to get color, ie and FF are different, here is an example, you can refer to the followingWhen using $ ("#id"). attr ("color") gets the color, IE and FF are different. For a simple example: The code is as follows: Use $ ("#id"). attr ("color") gets the value "green" in the Ff,chrome and the value obtained in IE is "#0080 00 ". So
Turn from:
Http://hi.baidu.com/%B9%F9%E8%B40110/blog/item/130a6d253bdcba0b4c088def.html
Http://www.xnwai.com/?tag=ie%E4%B8%8Eff%E4%B8%ADdiv%E8%87%AA%E5%8A%A8%E6%92%91%E5%A4%A7%E7%9A%84%E9%97%AE%E9%A2%98
Today's typesetting page again encountered this problem, before this can be written: height:auto!important; height:200px; min-height:200px, but today how to die, also do not know how to do, the Internet check, the original to add a Overflow:hidden div, remember to put height:200px, remove, or I
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
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.