Currently, Chrome is mainly used to browse Web pages, because Chrome is indeed faster, including the startup speed and loading speed of web pages, which is much faster than IE and ff, however, it is faster to view the new version of opera to load web pages. It is hard to evaluate it because it has never been used. when I used Chrome and FF to display my HTML files, I found that their results were different. No matter what the cause is, I 'd like to hack it first, however, the CSS hack we used previously is intended for IE, ff, and opera. How should we differentiate chrome from FF? I tried several IE and FF hack methods, but none of them work. I searched the internet and many people said I could use them.
@ Media screen and (-WebKit-Min-device-pixel-ratio: 0) {body {background-color: Blue;} to perform CSS hack for chrome and ff, however, the method I used was ineffective. Finally, I saw that a friend's method was very useful, that is, using:
Body: Nth-of-type (1) {
Color: red;
}
Body: Nth-of-type (1)Select the first body element. It is said that safari and chrome have the same kernel. Currently, only Safari 3 + and chrome support this method, so they can be used as hack;