Common CSS hack methods compatible with various browsers
On underone's website, he complained about the hack.
Now I want to share some of my known hack methods for various browsers.
1. This is a common CSS hack method widely circulated on the Internet that is well compatible with mainstream browsers such as IE
First, explain the title attribute:
Instance Description: The instance code that can be run and can be seen immediately appears in the article.
In line with Chinese characteristics: the most popular browsers used by Chinese netizens are IE and Firefox. Therefore, these csshack mainly aims to solve the compatibility problems of the two browsers. Chinese computer users mainly use Windows operating systems. Therefore, these csshack targets Windows operating system browsers, excluding Mac.
In l
Screen IE browser (ie do not show)
*:lang (en) Select {font:12px!important}/*ff Dedicated * *
Select:empty {font:12px!important}/*safari Visible * *
Here the Select is a selector and is replaced according to the situation. The second sentence is unique to the Safari browser on the Mac.
Only IE7 recognition
*+html {...}
This hack can be used when faced with the need to do IE7 style only.
IE6 and IE6 following identification
* HTML {...}
This place sh
What is CSS hack?
Because of different browsers, such as Internet Explorer 6,internet Explorer 7,mozilla Firefox and so on, the interpretation of the CSS is not the same, so will result in the resulting page effect is not the same, we need the page effect.
This time we need to different browsers to write different CSS, so that it can be compatible with different browsers, in different browsers can also get the page effect we want.
The process of writi
block IE browser (ie not shown)*:lang (en)Select{font:12px!important;} /*FF,OPVisible, special reminder: Due to the recent upgrade of opera, this sentence is only recognized by FF */Select: Empty {font:12px!important;} /*safari Visible */Here select is the selector and is replaced as appropriate. The second sentence is unique to the Safari browser on your Mac.only IE7 and IE5.0 can be identified*+htmlSelect{... ..}This hack can be used when faced with
Shield ie browsers (that is, they are not displayed under IE)
*: Lang (zh)
Select{
Font: 12px! Important;}/* ff,
OPNote: Due to the recent upgrade of opera, this sentence is only recognized by FF */
Select: Empty {
Font: 12px! Important;}/* safari visible */
Here, select is the selector, which can be changed as needed. The second sentence is unique to the Safari browser on Mac.
Only IE7 and ie5.0 can be recognized
What is CSS hack?
Http://www.div-css.com 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 ti
CSS Hack, csshack
Css hack is widely used on the Internet. It is mainly caused by different IE versions. Do not use css hack as much as possible. You can use css hack if you cannot adjust it. I believe that with the elimination of earlier IE versions, css hack will not be u
Today, when I sorted out the CSS of my website, I found that my website was distorted under Firefox. At this time, I am in a hurry.
I found a lot of information on the Internet and found that the following content is more practical: friends who are familiar with CSS must have a good understanding of CSS hack, now we are competing for Internet Explorer, Firefox browser, Chrome browser, Opera browser, and Safari browser.
Here I have sorted out the CS
This post was last edited by Pnmker on 2012-12-2 05:19Originally this article can be written in a week earlier to share with you, because of a certain reason delayed to the present, in the mind there is a little bit like sorry everyone's feeling. This is of course related to artifacts, because I find that using these four artifacts I seem to think that almost all of the net program hack is a cinch. And I actually found this artifact combination post
First, prefaceFrom the beginning of this article we began our path of cracking, the previous several articles in how we explain how to strengthen our apk, to prevent others to crack, then we will start to crack our apk, for the previous encryption method of using the corresponding crack technology, The hack in Android can be broadly divided into static analysis and dynamic analysis, which can be subdivided into Java layers (Smail and Dex) and native l
css| Tips
Screen IE browser (ie do not show)
*:lang (en) Select {font:12px!important}/*ff Dedicated * *Select:empty {font:12px!important}/*safari Visible * *Here the Select is a selector and is replaced according to the situation. The second sentence is unique to the Safari browser on the Mac.
Only IE7 recognition
*+html {...}This hack can be used when faced with the need to do IE7 style only.
IE6 and IE6 following identification
* HTML {...}This plac
The so-called hack is that only a specific browser can recognize this hack code. Hack is not a good thing, unless there is no way, we try not to use the thing. The following is a list of CSS Hack for each browser.Firefox browser@-moz-document Url-prefix () { . selector { property:value; }}Browsers that support all
Original addressOriginally this article can be written in a week earlier to share with you, because of a certain reason delayed to the present, in the mind there is a little bit like sorry everyone's feeling. This is of course related to artifacts, because I find that using these four artifacts I seem to think that almost all of the net program hack is a cinch. And I actually found this artifact combination postponed a week before sharing with everyon
The so-called medial Queries is the media query.With the popularity of responsive design,medial Queries can be regarded as more and more people to view the note. He allows web front-end projects to implement style selection under different devices, allowing sites to achieve different results in different devices.As we all know, sometimes in order to achieve some of the effects of IE and modern browser consistent, we have to use some hack means to achi
specify: Ouyang Bingfeng producedThis tutorial is designed to explore non-line security vulnerabilities, prohibited for illegal use, violators law (not my concern)Get down to the chase.First download "cdlinux-0.9.6.1 ISO wireless hack system"HTTP://U.115.COM/FILE/F7650106DD Cdlinux_-0.9.6.1_iso wireless hack system. ISOAnd then get ready for the virtual machine, I'm using the VM6If you do not like the virt
TIPS: What is CSS hack?
Different browsers, such as IE6, IE7, IE8, and Firefox, have different understandings of CSS parsing. Therefore, different page effects will be generated and the page effects we need will not be obtained.
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
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;
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
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.