.


:




:

































 

 

 

 


rollover CSS




Rollover , . CSS sprites (). , , .

 

a {

display: block;

background: url(sprite.png) no-repeat;

height: 30px;

width: 250px;

}

 

a:hover {

background-position: 0 -30px;

}

CSS

, .

 

@font-face {

font-family: 'MyFontFamily';

src: url('myfont-webfont.eot?') format('eot'),

url('myfont-webfont.woff') format('woff'),

url('myfont-webfont.ttf') format('truetype'),

url('myfont-webfont.svg#svgFontName') format('svg');

}

google CSS

. Google API . css .

 

// head

<!-- Some special fonts -->

/* Single font load*/

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif">

/* Multiple font load*/

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Nobile|Droid+Serif|Old+Standard+TT|Droid+Sans"><!-- Some special fonts -->

// css

body {

font-family: 'Droid Serif', serif; font-size: 48px;

}

 

CSS

CSS.

 

img.flip {

-moz-transform: scaleX(-1);

-o-transform: scaleX(-1);

-webkit-transform: scaleX(-1);

transform: scaleX(-1);

filter: FlipH;

-ms-filter: "FlipH";

}

CSS

, , . , .

 

/* for firefox, safari, chrome, and any other gecko/webkit browser */

-webkit-transform: rotate(-90deg);

-moz-transform: rotate(-90deg);

 

/* for ie */

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

 

/* opera */

-o-transform: rotate(30deg);

, , .

 

#content {

width: 100%;

margin: 0;

float: none;

}

CSS

CSS , .

 

/***** Selector Hacks ******/

 

/* IE6 and below */

* html #uno { color: red }

 

/* IE7 */

*:first-child+html #dos { color: red }

 

/* IE7, FF, Saf, Opera */

html>body #tres { color: red }

 

/* IE8, FF, Saf, Opera (Everything but IE 6,7) */

html>/**/body #cuatro { color: red }

 

/* Opera 9.27 and below, safari 2 */

html:first-child #cinco { color: red }

 

/* Safari 2-3 */

html[xmlns*=""] body:last-child #seis { color: red }

 

/* safari 3+, chrome 1+, opera9+, ff 3.5+ */

body:nth-of-type(1) #siete { color: red }

 

/* safari 3+, chrome 1+, opera9+, ff 3.5+ */

body:first-of-type #ocho { color: red }

 

/* saf3+, chrome1+ */

@media screen and (-webkit-min-device-pixel-ratio:0) {

#diez { color: red }

}

 

/* iPhone / mobile webkit */

@media screen and (max-device-width: 480px) {

#veintiseis { color: red }

}

 

/* Safari 2 - 3.1 */

html[xmlns*=""]:root #trece { color: red }

 

/* Safari 2 - 3.1, Opera 9.25 */

*|html[xmlns*=""] #catorce { color: red }

 

/* Everything but IE6-8 */

:root *> #quince { color: red }

 

/* IE7 */

*+html #dieciocho { color: red }

 

/* Firefox only. 1+ */

#veinticuatro, x:-moz-any-link { color: red }

 

/* Firefox 3.0+ */

#veinticinco, x:-moz-any-link, x:default { color: red }

 

/***** Attribute Hacks ******/

 

/* IE6 */

#once { _color: blue }

 

/* IE6, IE7 */

#doce { *color: blue; /* or #color: blue */ }

 

/* Everything but IE6 */

#diecisiete { color/**/: blue }

 

/* IE6, IE7, IE8 */

#diecinueve { color: blue\9; }

 

/* IE7, IE8 */

#veinte { color/*\**/: blue\9; }

 

/* IE6, IE7 -- acts as an!important */

#veintesiete { color: blue!ie; } /* string after! can be anything */

 

/* IE8 */

#anotherone {color: blue\0/;} /* must go at the END of all rules */





:


: 2017-03-18; !; : 235 |


:

:

- - , .
==> ...

1904 - | 1860 -


© 2015-2024 lektsii.org - -

: 0.015 .