In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "why css hack can not be used more". In daily operation, I believe many people have doubts about why css hack can not be used more. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "Why can't css hack be used more?" Next, please follow the editor to study!
The reasons why css hack cannot be used more often: 1. In order to be compatible with CSS parsing BUG in low-version browsers, CSS hack has to write the code around, which directly increases the maintenance cost; 2. Now many hacks have abandoned the original principle, and the abuse of hack will lead to more compatibility problems after browser updates.
The operating environment of this tutorial: windows7 system, CSS3 version, Dell G3 computer.
CSS hack is by adding some special symbols to the CSS style to let different browsers recognize different symbols (what kind of browser recognizes what kind of symbols is a standard, CSS hack is to let you remember this standard), in order to achieve the purpose of applying different CSS styles.
CSS hack is a remedy adopted in order to be compatible with different browsers because the existing browsers have different interpretations of the standards. In order to be compatible with the CSS parsing BUG of low-version browsers, the code has to be written around, which directly increases the maintenance cost.
CSS hack is a similar means of cheating, to deceive the browser to achieve the purpose of compatibility, is to use the browser compatibility difference to solve the browser compatibility problem. Therefore, at the beginning of the design, writing CSS hack needs to follow the following three principles:
Valid: able to pass the verification of web standard
Only for browsers that are too old / no longer developed / abandoned, not current mainstream browsers
Code to be ugly, let people remember that this is a last resort Hack, always remember to find a way to get rid of it.
Now many hacks have abandoned the original principle, and misuse of hack will lead to more compatibility problems after browser updates. Therefore, it is not recommended to use CSS hack to resolve compatibility issues.
At this point, the study on "why css hack can not be used more" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.