Hot File

How to hack css for all browsers you should know

View: 1545    Dowload: 0   Comment: 0   Post by: hanhga  
Author: none   Category: References   Fields: Other

27 point/8 review File has been tested

In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well on browsers like Firefox, Chrome, Safary and even the oldest browsers like IE6 and earlier.

Introduction

In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well on browsers like Firefox, Chrome, Safary and even the oldest browsers like IE6 and earlier.

Cách hack css cho tất cả các trình duyệt

I would like to recommend the following ways to hack css:
Option 1: Hack right in css file

For Firefox

1
2
html>/**/body .logo{margin-left:10px} /* chỉ firefox thôi */
html>body .logo{margin-left:10px} /* ie7 và firefox */

For IE

01
02
03
04
05
06
07
08
09
10
11
12
.box {
margin-top:5px; /* tất cả các trình duyệt */
margin-top:8px\9;/*Tất cả cá trình duyệt IE */
*margin-top:8px; /* IE 7 và các IE thấp hơn */
_margin-top:8px; /* IE 6 và các IE thấp hơn */
_mar\gin-top: 8px; /* chỉ áp dụng cho thằng IE 6 */
_margin-top/**/:/**/ 10px; /* IE 6 luôn */
margin-top/**/:9px; /* IE 5.0 */
_margin-top:/**/ 22px; /* IE 5.5 */
}
* html .logo{margin-left:10px;} /* ie6 */
* + html .logo{margin-left:20px;} /* ie7 */

Google Chrome and Safari

1
2
3
4
5
/* trong  google chrome màu chữ sẽ là màu đỏ */
#test1{color:green;}
@media screen and (-webkit-min-device-pixel-ratio:0) {
#test1{color:red;}
}

Google Chrome and Opera<10

1
2
3
4
5
6
7
/* Chữ màu đỏ cho opera và google chrome */
#test2{
color:green;
-bracket-:hack(;
color:red;
);
}

If you just want to hack own Chrome browser, use:

1
2
3
4
5
6
7
#test3{
/* màu đỏ sẽ được dùng ở google chrome */
color:green;
(-bracket-:hack;
color:red;
);
}

Hoặc :

1
2
3
4
5
6
7
/* màu đỏ sẽ được dùng ở google chrome */
#test4{
color:green;
-bracket-:hack[;
color:red;
];
}

SAFARI

1
2
3
4
5
/* css cho Safari đây */
.box {
margin-top:5px;
padding:5px;# // đây là phần hack css cho safari
}

OPERA

1
2
3
4
5
.myclass { background-color: red; } /* tất cả các trình duyệt */
@media screen and (-webkit-min-device-pixel-ratio:0) {
.myclass { background-color: yellow; }
} /* Opera */
@media all and (min-width:0px) {head~body .logo {margin-left:10px;}} /* chỉ opera */

Method 2: To css hack early in the <head> with control statements if ... .else

01
02
03
04
05
06
07
08
09
10
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie7.css" />
< ![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie6.css" />
< ![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="ie8.css">
<![endif]-->

On the way out, want to hack css in your browser, the corresponding write css for corresponding css file. Besides, you can also do the following:

1
2
3
4
<!--[if lte IE 7]> <html> <![endif]-->
<!--[if IE 8]> <html> <![endif]-->
<!--[if IE 9]> <html> <![endif]-->
<!--[if !IE]><!--> <html> <!--<![endif]-->

And in your css file, you will have to specify for each browser as follows:

01
02
03
04
05
06
07
08
09
10
11
12
/* Áp dụng ở tất cả trình duyệt */
.element {
margin-bottom: 20px;
}
/* Áp dụng cho IE7 */
.ie7 .element {
margin-bottom: 10px;
}
/* Áp dụng cho IE8  */
.ie8 .element {
margin-bottom: 15px;
}

Above is the way to hack the CSS on the popular browser is currently Google Chrome, Firefox, IE, Opera and Safari. If you do have a better way to hack the browser or know how to hack for other browsers, please share with me and people know anything. I'm really looking forward to the feedback from you.
Good luck !

How to hack css for all browsers you should know

How to hack css for all browsers you should know Posted on 22-08-2015  In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well on browsers like Firefox, Chrome, Safary and even the oldest browsers like IE6 and earlier. 3.375/10 1545

Comment:

To comment you must be logged in members.

Files with category

  • Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    View: 2286    Download: 0   Comment: 0   Author: none  

    Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    Category: References
    Fields: Other

    0/2 review
    Windows 10 pre-installed Mail application for managing personal email on the device. The latest version of this application but improved a lot and support other email accounts such as Gmail or Yahoo Mail but users almost no "salty" really with this...

  • Step by step instructions to create social networking buttons with CSS3

    View: 1772    Download: 0   Comment: 0   Author: none  

    Step by step instructions to create social networking buttons with CSS3

    Category: References
    Fields: Other

    0.75/6 review
    CSS3 help web designers have the ability to create buttons (buttons) very nice, today I will share with you two tips decoration for button in your web becomes radiant beauty that no need to use photoshop.

  • You should understand the CSS Box Shadow

    View: 1945    Download: 0   Comment: 0   Author: none  

    You should understand the CSS Box Shadow

    Category: References
    Fields: Other

    1.3181818181818/11 review
    Effects his shadow was introduced in the previous article, however, in this article, I will guide more specific about shadow attributes, you try it with anything. First we try to learn css following paragraph:

  • How to do button movement with beautiful CSS3

    View: 1627    Download: 0   Comment: 0   Author: none  

    How to do button movement with beautiful CSS3

    Category: References
    Fields: Other

    0/3 review
    Previously to create motion effects button, you must draw the button in photoshop, then switched to flash to make it possible to move. But now you need not spend too much time doing it, all because of the emergence of CSS3.

  • Create a dropdown menu with CSS3 effects with beautiful transtions

    View: 1908    Download: 0   Comment: 0   Author: none  

    Create a dropdown menu with CSS3 effects with beautiful transtions

    Category: References
    Fields: Other

    0.45/10 review
    More of the dropdown menu you want to introduce to you, this will have the effect menu transitions (converted background of menu background from pale to dark). This menu works well on browsers like FF, Chrome, Safary, but unfortunately did not work...

  • How to hack css for all browsers you should know

    View: 1545    Download: 0   Comment: 0   Author: none  

    How to hack css for all browsers you should know

    Category: References
    Fields: Other

    1.6875/8 review
    In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well...

  • Create Accordion with extremely beautiful CSS3

    View: 1917    Download: 0   Comment: 0   Author: none  

    Create Accordion with extremely beautiful CSS3

    Category: References
    Fields: Other

    0.9/5 review
    Accordion is a technique that helps you shortened the content that you want displayed on the website. It is often used for the display of submenus. In addition you can also use it for content, images. Before applying this procedure, you have to use...

  • Create the effect Hovercho images with Webkit and CSS3 is great

    View: 1638    Download: 0   Comment: 0   Author: none  

    Create the effect Hovercho images with Webkit and CSS3 is great

    Category: References
    Fields: Other

    1.125/4 review
    WebKit is one open source application framework provides the necessary components built one for your web browser. Along with CSS3, cả have contributed to very nice effect những previously only using JavaScript or JQuery thực beige.​

 
Newsletter Email

File suggestion for you

File top downloads

logo codetitle
Codetitle.com - library source code to share, download the file to the community
Copyright © 2015. All rights reserved. codetitle.com Develope by Vinagon .Ltd