Solve the hack writing of CSS compatibility in IE6, IE7, IE8, and Firefox
The biggest headache for every CSS adjustment is the browser correction problem, because each browser has different interpretations of CSS. Firefox itself is more disciplined and easier to handle, however, when you encounter Microsoft's ie series, the headers are big. Although they are all Internet Explorer, they have different interpretations of CSS in IE6, Internet E
The content of CSS hack comes from: 1. Basic explanation
What is CSS hack?Different browsers, such as Internet Explorer 6, Internet Explorer 7, and Mozilla Firefox, have different understandings of CSS parsing, which leads to different page effects, we cannot get the page effect we need.At this time, we need to write different CSS for different browsers so that they can be compatible with different browser
As the name suggests, IE6's classic hack is: an underscore "_", for example, _ color: # ff0000; but this example is placed at the bottom.
The hack of IE6 7 is: an asterisk "*", for example, * color: # ff0000. However, this should be placed before _ hack.
So someone summarized the figure below:
For the above image, it is transferred to me by someone e
Document directory
Development Platform Selection
Hack Sequence
Hack Method
(From: http://www.neoease.com/css-browser-hack)
Due to the rise of Firefox and the separation of Internet Explorer,CSS hackI got the attention of the Website Creator again.Compatible with browsersIt is a pity that some of my friends have failed to stick to it because of their trou
Problem descriptionThe following CSS code through JS Dynamic Add, the result will be?. box { background:red;/* Normal browsers */ *background:blue; /* IE 6 and 7 */ _background:green;/* IE6 */}Add to the page with the following codevar node = document.createelement (' style '); node.type = ' text/css '; if (node.stylesheet) { //For W3cnode.styleSheet.cssText = style;} else { //For Ienode.appendchild (document.createTextNode (Style));} document.getElementsByTagName (' head
Generally speaking, when we write a better structure, there is no difference between ie8/9. So few people can focus on CSS hack that only IE8 or IE9 recognize.Because IE8 and the following version is not supported CSS3, but if we use CSS3, under IE IE9 Normal rendering, but we want to let IE8 and the following browser to achieve the same effect, and do not want to use Css3pie or HTC or conditional comments, and other methods, You may need to use the e
On the CSS for each browser compatibility 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
Ajax| string
Ajax hacks-hack 5. Get normal stringThe normal string is used to manage weather information, stock prices, and other times when you don't use XML.The request object can sometimes be applied to Web applications without using XML:request.responseText. This hack the user by selecting a stock symbol and then obtaining the price of the stock in a string format from the server. The price to get the
Css hack in different browsers and csshack in browsers
Today, I took over a new project and will finish it by the end of the year. I wish you a smooth completion of your work. Some browser compatibility problems were encountered when setting up the CSS framework. So let's count the css hack for each browser.
(Pasted from encyclopedia)
CSS Hack for Firefox:@-Moz
What is CSS hack?
Different browsers, such as Internet Explorer 6, Internet Explorer 7, and Mozilla Firefox, have different understandings of CSS parsing, which leads to different page effects, we cannot get the page effect we need.
At this time, we need to write different CSS for different browsers so that they can be compatible with different browsers at the same time, so that we can get the desired page effect in different browsers.This process of
[Post] No Div, no float, no clear, no hack, strong CSS layout
Original post address: http://parandroid.com/no-float-css-layout/
How great is CSS + XHTML? Needless to say. However, this seemingly simple development technology has seen thousands of application changes. It is not difficult to learn CSS + XHTML. It is the most difficult to apply the most appropriate and streamlined method. I usually modify the Palan image at in
CSS hack has to be used in some projects. The jquery blog has also met. I want to write a 3D map for the second development. Code Compatibility. It is difficult to implement it in the short term. It is impossible to return to CSS hack.In order to debug Nima's 3D map, we had to install ie9 and use ietest to take care of IE's family. Firefox Chrome safari OperaHack SequenceGenerally, Firefox is used as a platform. As long as the code is well written, th
css hack simply because of different browsers, such as Internet Explorer 6,internet Explorer 7,mozilla Firefox, the parsing of CSS is not the same, As a result, the resulting page effect is not the same as the page effect we need. we can write different CSS for different browsers according to this . IE6 can identify underline and asterisk ,ie7 can recognize asterisks "_" firefox Two none of them know. Wait The writing order is usu
I. CSS hackThe following two methods can solve almost all today's hack.1 ,! ImportantWith 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 and * HTML are unique tags of IE, which are not supported by Firefox at the moment. * + HTML is also a unique tag of IE7.Note:* + The HTML
Original Author:Micron blog
I used to write an article about CSS hack.ArticleBut I recently looked back and found that my understanding was not profound enough and my summary was not concise. So I will try again today to write a new article. Common CSS
Hack is as follows (I only tested ie FF chrome ).
Hack list (all tested by the author and in standard mode, hybrid mode is rarely used, so it is not
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 hackThe 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 w
Google to stop censoring search results in China after hack attack
Google has decided to stop censoring search results in China, after discovering that someone based in that country had attempted to hack into the E-mail accounts of human rights activists. the company disclosed the move in a startling announcement posted to its blog late Tuesday.
Google said it was prepared to pull its business out of China,
When we use JavaScript to manipulate CSS styles, if we stay in the CSS2 phase, we will find that it is not very difficult to operate. While there are some browser-compatible issues, we can not only set styles but also get styles by encapsulating our own functions. But what happens if JavaScript comes across the CSS3?We know that although CSS3 is currently present in various browsers, it has not yet been formally released as a set of specifications. Therefore, the various browsers for the CSS3 at
VBulletinHACK-two HACK about typographical: simple text typographical with vB code
Cause: this is not available in version 1.1.4, and the famous ubb hack home in China adds a lot of UBB code (vB code) for text layout ).
Advantage: only a few lines are required.
Disadvantage: nesting is required, so if the user does not write well, it will affect the style of other content in the post, and even affect the en
VBulletinHACK-read vBulletinHACK about two HACK about typographical. the reason for "simple text layout implemented by vB code" is that this is not found in version 1.1.4, the famous UBBHACK home in China has added a lot of UBB code (vB code) for text formatting ). Advantage: only a few lines are required. ">
Simple text layout implemented with vB code
Cause: this is not available in version 1.1.4, and the famous ubb
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.