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
Common browser compatibility issues when you're learning HTML and CSS, you'll always have a lot of browser compatibility issues when you cut graphs every day. Recently, we have been focusing on mobile platform development, regardl
directly object.classname= ' styleClass ';Both IE and FF support Object.classname.22. Setting events with SetAttributevar bj = document.getElementById (' objId ');Obj.setattribute (' onclick ', ' funcitonname (); ');Firefox support, IE does not support the solution: IE must use the DOT capable reference the required event handlers, and to be given the anonymous function as follows: var bj = document.getElementById (' objId '); Obj.onclick=function () {fucntionname ();}; This method is supported
automatically compile all pages using IE7 mode.There's another solution, like Google'sIe7–js is a JavaScript library (the JS library that solves the conflict between IE and the Web Standard), making Microsoft's Internet Explorer behave like a website-compliant browser, supporting more standards and supporting CSS2, CSS3 selectors. It fixes a number of HTML and CSS issues and makes transparent PNG appear co
CSS multi-browser compatibility issues and solutions
First, Document.formName.item ("itemname") problem
Problem description: Under IE, you can use Document.formName.item ("ItemName") or document.formName.elements ["ElementName"];firefox, You can only use the document.formname.elements["ElementName"].
Workaround: Unify the use of document.formname.elements["El
spill it.Div>Div>Problem Solving: Method 1: Delete all comments between Box1 and Box2 Method 2: cancel the floating of Box1 and Box2Something: In addition to IE6, 7 of some of their own bugs, more compatibility issues from the browser itself to some CSS new properties, selectors or some new features are not supported or not fully supported, so if the project
:: Selection;
Implement media Query (@media), Multi-column layout (flex).
(3) The removed element
Elements of pure expression: basefont,big,center,font,s,strike,tt,u;
Elements that have a negative impact on usability: frame,frameset,noframes;
(4) HTML5 new label browser compatibility problem is that the browser does not recognize the HT
When you're learning HTML and CSS, you'll always have a lot of browser compatibility issues when you cut graphs every day. Recently, we have been focusing on mobile platform development, regardless of the number of browser compatibility
Detect all of your browser's information
use JavaScript to detect all information about the visitor's browser.
Code section:
Results:
Codename=mozilla
minorversion=undefined
Name=netscape
version=5.0 (Windows)
Cookieenabled=true
cpuclass=undefined
Online=true
Platform=win32
ua=mozilla/5.0 (Windows
CompatibilityThe problem is that multiple browsers exist at the same time. These browsers sometimes behave differently when processing the same page. This difference may be very small, not even noticed; it may also be very large, or even cause failure to browse normally in a browser. We collectively refer to the problems that cause these differences as "browser compatib
Some browser compatibility issues do a summary below:Why is this happening? The main is like Firefox browser good support of the standard, is currently the best CSS support browser, and IE is appearing earlier, in the support of the Internet is not very good. There's a lot o
, opera and safari support for CSS styles important and *1, IE6, IE7 all support *, but IE8 finally return to the Orthodox, give up the support of *2, IE7, IE8, Firefox, Opera, Safari all support importantImportant, the priority of the high-level. To illustrate:Body{Background-color: #FF0000!important;*background-color: #00FF00!important;*background-color: #0000FF;Background-color: #000000;}IE6 Choose the last one, namely: Background-color: #000000; (because IE6 does not support important)IE7 Se
Window.onload = function () {Alert (' Hello, welcome ');//The browser pops up normally}Window.onbeforeunload = function () {Alert (' Thank you for coming '); IE Firefox Browser tipsReturn (' Thank you '),//ie Google browser hint (opera browser only prompts when refreshed)}Window.onunload = function () {Alert (' Good-by
', ' StyleClass ' )Both IE and FF support Object.classname.22. Setting Events with SetAttributevar obj = document.getElementById (' objId ');Obj.setattribute (' onclick ', ' funcitonname (); ');Firefox support, IE does not supportWorkaround:You must use dot capable to reference the required event handlers in IE, and to assign anonymous functionsAs follows:var obj = document.getElementById (' objId '); obj.onclick= This method is supported by all browserstwo or three. Create a radio buttonBrow
CSS compatibility is also the focus of attention. We must pay attention to the multi-test. Javascript multi-browser compatibility issues and solutions key to compatibility processing1. DOCTYPE affects CSS processing2, FF: Set padding, div will increase height and width, but
Recently in the study of some of the browser compatibility issues of the CSS problem, first summarized as follows:(1) in some modern browsers (Opera,chrome, Google, Safari), if the block-level tags such as div set padding will cause the element height and width increase, in IE will not increase, but only in the IE6 does not increase, IE7 above in IETester test wi
1, different browser tags default external patches and internal patches are differentProblem symptom: Write a few labels casually, do not add style control case, each margin and padding difference is big.Hit frequency: 100%Solution: Initialize the default CSS style, *{margin:0;padding:0}. You can also use the initialization code for other sites.Note: This is one of the most common and easiest browser
Some of the most common compatibility issues:1. Different browser tags default external patches and internal patches are differentIn each browser, without the style, the margin and padding differ greatly from each other.Workaround: Write *{margin:0px;padding:0px} in CSS2. Child elements kidnap the parent element's Marg
minimum height setting min-height incompatibleProblem: Because Min-height itself is an incompatible CSS property, setting Min-height is not very well-compatible with individual browsersSolution: If we want to set the maximum height of the tag, we need to set it to: {min-height:200px; Height:auto!important;height:200px; overflow:visible;}Note: When the content is less than a single value (such as 300px). The height of the container is 300px;When the content is at this value, the container height
Here are a list of browser compatibility issues that you can refer to when you write CSS.
1, only IE7 and IE5.0 can be identified*+html Select {...}This hack can be used when faced with the need to make styles only for IE7 and IE5.0.2, only IE7 can be identified*+html Select {...! important;}This hack can be used when faced with the need to do IE7 style only.3, I
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.