Learn about how to fix browser compatibility issues, we have the largest and most updated how to fix browser compatibility issues information on alibabacloud.com
be open how to set it? The way is to remove height setting min-height:200px; Here in order to take care of the IE6 do not know min-height can be defined as: {height:auto!important; height:200px; min-height:200px;}12.FireFox How to make continuous long field line wrapping is well known in IE directly using Word-wrap:break-word, FF we use JS Insert #10, the method to solve 13. Why is the width of the IE6 under the container different from the FF interpretation Ie6,ie7,ff IE7.0 out, the support
to set it? The way is to remove height setting min-height:200px; Here in order to take care of the IE6 do not know min-height can be defined as: {height:auto!important; height:200px; min-height:200px;}12.FireFox How to make continuous long field line wrapping is well known in IE directly using Word-wrap:break-word, FF we use JS Insert #10, the method to solve 13. Why is the width of the IE6 under the container different from the FF interpretation Ie6,ie7,ff IE7.0 out, the support for CSS has
Large rollup of browser compatibility issuesØjavascript 31. Getting problems with HTML Objects 32. Const Issue 33. Event.x and EVENT.Y issues 34. Window.location.href Question 35. Frame Question 36. Modal and non-modal window problems 37. The difference between Firefox and IE's parent element (parentelement) 38. Document.formName.item ("ItemName") Question 39. Co
Browser compatibility issues with CSS Today there is time, simply summed up the next CSS browser compatibility related issues, share with you ...1.CSSin thewidthand thepaddingIn IE7 and Mozilla firefox, width widths do not include
troubleshoot multiple browser incompatibility issues
First, the browser is not compatible with what.
Browser incompatibility mainly performance of certain functions can not be used, site dislocation, the site some content does not show, web site effects in the browser is no
percentage, even if all 100% under IE will also be displayed in a row. So the above sentence of the so-called "This is the key" is useless, do not add also in a row, unless you define the width of the value to be used.So the above code is not very useful, at least not under the FF. In fact, as long as only define the left width on the line, right does not define width in either IE or FF can be successful, but so the parent div box does not really contain the left and right two sub-div, you can
Div.
17.ie6 under the picture there is a gap generated
There are a lot of tricks to fix this bug, either by changing the layout of the HTML, or by setting IMG to Display:block or setting the Vertical-align attribute to vertical-align:top/bottom/middle/ Text-bottom can all be solved.
18. Text Input Box
Plus vertical-align:middle;
It is verified that the next version of IE is not applicable, and FF, Opera, Safari, Chrome are ok!
19.L
outside the package"3" When the width of the parent element of an absolutely positioned element in the Ie6-browser is odd, the right of the element will have a 1px deviation and the bottom of the element will have a 1px deviation when the height is odd.Form Bug"1" ie6-browser the label tag only supports the For property, does not support only the Resolve uses the For property"2" (input void problem) when t
the block and inline elements: the block elements always start on a new line, and can be controlled by the height, width, row height, and margin (block element ); the Inline element is not controllable (embedded element) on the same line as other elements );# Box {display: block; // you can simulate embedded elements as block elements.Display: inline; // display the result of the same row arrangement;
4 issues with IE and width and heightIE does not
padding.Workaround:body.style{width:100px;border:1px;}IE is understood as Box.width = 100Standard browser understood as Box.width = 100 + 1*2 = 102//plus Border 2pxSolution: div{margin:30px!important; margin:28px;}Note that the order of the two margin cannot be reversed, IE does not recognize the!important attribute, but other browsers can recognize it. So under IE actually explains this: div{margin:30px;margin:28px;}Repeat definition is executed acc
change the body to html.
25. FORM tag
In IE, this label will automatically margin some margins, while in FF, margin is 0. Therefore, if you want to display consistency, it is best to specify margin and padding in css, for the above two problems, I usually use this style ul in css, form {margin: 0; padding: 0 ;}.
26. Attribute selector (this is incompatible and is a bug in hiding css)
P [id] {} p [id] {}
This is hidden for versions earlier than IE6.0 and IE6.0, and works with FF and OPera.
static content, the height is best set. (Sometimes it doesn't seem to be going off automatically, not knowing what's going on)5, the most ruthless means-!important;If there is no way to solve some of the details, we can use this method. FF will automatically parse for "!important", but IE will be ignored. tabd1{Background:url (/res/images/up/tab1.gif) no-repeat 0px 0px!important; /style for ff/Background:url (/res/images/up/tab1.gif) no-repeat 1px 0px; /* Style for IE */}It should be noted that
-bottom:20px; text-align:center;}
Workaround: Add 2 empty div object CSS code {Height:0px;overflow:hidden} to the P object. Or add the border attribute to the Div. IE6 under the picture there is a gap produced
There are a lot of tricks to fix this bug, either by changing the layout of the HTML, or by setting IMG to Display:block or setting the Vertical-align attribute to vertical-align:top/bottom/middle/ Text-bottom can all be solved. text inp
the box containing float, the height of automatic adaptation in IE invalid, this time should trigger the layout of IE private property (evil ie Ah!). ) with zoom:1, can be done, so that the compatibility is achieved. For example a certain wrapper is defined as follows:. colwrapper{Overflow:hidden; zoom:1; margin:5px Auto;}③ for typography, the CSS description we use most probably is float:left. Sometimes we need to do a unified background behind the
the box containing float, the height of automatic adaptation in IE invalid, this time should trigger the layout of IE private property (evil ie Ah!). ) with zoom:1, can be done, so that the compatibility is achieved. For example a certain wrapper is defined as follows:. colwrapper{Overflow:hidden; zoom:1; margin:5px Auto;}③ for typography, the CSS description we use most probably is float:left. Sometimes we need to do a unified background behind the
guarantee not wrap. Refer to MenuBar, set a and menubar height is to avoid the bottom of the display dislocation, if not set height, you can insert a space in the menubar.23. Hover style does not appear after hyperlink accessThe clicked Hyperlink style is not hover and active, many people should have encountered this problem, the solution is to change the order of CSS properties: l-v-h-aCode:Form labelThis tag in IE, will automatically margin some margins, and in the FF margin is 0, so if you w
IE6 and common compatibility issues for each browser summarySummary: Although IE6 will be discontinued in April 2014, it must be said that the IE6 market will not disappear with the support of the stop immediately, for Web front-end development engineers, compatible IE6 compatible with each browser, still have to face
compatibility issues are caused by multiple browsers being present at the same time. These browsers sometimes behave differently when they are working on an identical page. This difference may be small, or even unnoticed, and may be large or even cause a browser to not navigate normally. We refer to the problem that causes these differences collectively as "
, exceeding the height of your own settingsHit frequency: 60%Solution: Set Overflow:hidden for labels that are out of height, or set line height line-height less than you set.Example code: #first{ background-color: red; width: 200px; height: 10px; }Solution: Add Overflow:hidden to the style;8, a few IMG tags together, some browsers will have the default spacing, add the problem one mentioned in the wildcard character also does not work.Solution: Use the
IE6 and common compatibility issues for each browser summarySummary: Although IE6 will be discontinued in April 2014, it must be said that the IE6 market will not disappear with the support of the stop immediately, for Web front-end development engineers, compatible IE6 compatible with each browser, still have to face
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.