|
|
|
| MIME |
|
|
17 1996 |
|
|
|
|
| () |
Level 1 (Recommendation) |
| HTML |
|---|
CSS (. Cascading Style Sheets ) , .
, -, HTML XHTML, XML-, , SVG XUL.
|
|
[]
[] CSS
CSS - , , -. CSS - ( HTML ) - ( CSS). , , . , CSS , , , ( ), , .
[] CSS
CSS CSS , CSS. -, , , CSS. ( , CSS . .css , CSS .)
, , - :
<head> ..... <link rel="stylesheet" type="text/css" href="style.css"> </head>
- , - @import, <style> </style> (, , <head> </head>) <style>, ( , url) . ;
<head> ..... <style type="text/css" media="all"> @import url(style.css); </style> </head>
- , <style> </style> (, , <head> </head>). ;
<head> ..... <style type="text/css"> body { color: red; } </style> </head>
- , - ( style) . .
<p style="font-size: 21px; color: green;"> , </p>
, , .
CSS XML-, . :
<?xml-stylesheet type="text/css" href="style.css"?>
[]
, HTML- , . HTML , , -, -, .
, , . , - .
, , p, b. b p, body. , p body . , p , body.
[] CSS
CSS (. ) CSS . , , , . . , , , , «;». CSS , «:». . .
, { : ; : ; : ; }
CSS (. ) CSS ( style , ) (« CSS : »), «;».
[]
CSS
- ;
p {font-family: Garamond, serif;}
- ;
.note {color: red; background: yellow; font-weight: bold;}
- ;
#paragraph1 {margin: 0;}
- ;
a[href="http://www.somesite.com"]{font-weight:bold;}
- ( );
div#paragraph1 p.note {color: red;}
- ;
p.note > b {color: green;}
- ;
h1 + p {font-size: 24pt;}
- ;
a:active {color:yellow;}
- .
p::first-letter {font-size: 32px;}
- CSS , , . ,
*{color:red;}. , , , , , .first {...}*.first {...} .
[] . .
- () HTML class id ():
<div id="first"> ... </div> <p class="big"> ... </p>
, - , - . , ( , ). .
: JavaScript .
, , .
. ( «.»), ( «#»), - .
CSS , , , , , , , . CSS : , , .
[] . . CSS.
CSS HTML . , CSS, -, . , , CSS , p CSS , , p, p CSS (, color:green;), -, .
, - HTML CSS, , . .
- ;
- , ;
- , . , :
- , ;
- , , ;
- , (. « »), style . , - , , . . :
- (
#id) - ((1,0,0) CSS); - (
.class) (:pseudoclass) - ((0,1,0) CSS ); - - ((0,0,1) CSS). ( , , , (1,0,0) , ́ , (0,10,0), (0,1,0) , , (0,0,10). , , , .)
- (
- , style ;
- , ,
!important. , , , ( ) , , .
[]
( .css, <style> «» -, ):
p { font-family: Garamond, serif; } h2 { font-size: 110 %; color: red; background: white; } .note { color: red; background: yellow; font-weight: bold; } p#paragraph1 { margin: 0; } a:hover { text-decoration: none; } #news p { color: blue; }
CSS p, h2, .note, p#paragraph1, a:hover #news p.
- HTML-
p() . Garamond, , , - («serif»). - HTML-
h2( ). . - ,
class'note'. , :<p class="note"> .</p> -
p,idparagraph1. (margin). - hover
a. ,a. , . - , ,
p, -id, «news» (#news p , . 5- ).
[] CSS-
CSS - HTML, . CSS . , .
:
:
- ( ), CSS.
- CSS-, HTML, CSS, .
[] CSS
CSS , W3C « Web»[1]. 1990- Web, - , - . HTML 4.01 XHTML CSS.
1990- . HTML , CSS .
, CSS , , .
1990- (W3C) CSS, 1996 CSS1.
[] 1 (CSS1)
W3C, 17 1996 , 11 1999 [2]. , :
- . , , .
- . , , .
- . , ( )
- , , .
- , , , (padding) (margin) . , float clear.
[] 2 (CSS2)
W3C CSS2 CSS2.1
[] 2, 1 (CSS2.1)
CSS2.1 CSS2. , , . CSS3.
[] 3 (CSS3)
[4].
[] 4 (CSS4)
[] CSS
CSS , Gecko (Mozilla Firefox .), WebKit (Safari, Arora, Google Chrome) Presto (Opera)[9].
- [10] Internet Explorer 6 CSS [11].
7 Internet Explorer 7 CSS[12][13], [14].
Internet Explorer 8 , CSS 2.1 CSS 3[15].
- ( CSS) Acid. Acid2, , , Acid3.
[]
CSS W3C , width , . Internet Explorer (4 5), , width , (padding) (border). Internet Explorer 5 Netscape 4 Opera 7. W3C IE .
CSS3 box-sizing, content-box W3C border-box IE 5.
Mozilla, , «» -moz-box-sizing, padding-box, , width , .
[] CSS-
CSS - , . CSS- ( CSS-) ( ) . , , Internet Explorer 6 , * html (, «star html bug»). , , W3C IE, Quirks mode , #someblock 100 10 :
/* W3C - 80px 10px */ #someblock { width: 80px; padding: 10px; }
/* IE6. */ * html #someblock { width: 100px; padding: 10px; }
[]
Internet Explorer, 2010 : (CSS) , [16].
[] CSS Framework
CSS Framework ( Web design framework) css-, , ( . .). , CSS-, .css-, «» ( -), xhtml-.
[] CSS
: , . , . CSS , .
CSS. , CSS , . " CSS" CSS-, , . :
- ( JavaScript)
CSS:
[] .
[]
- , . . CSS-. / . . . . .: , 2005. 312 .: .
- Cascading Style Sheets, level 1
- Cascading Style Sheets, level 2 CSS2 Specification
- W3C: CSS: current work, CSS 3, etc.
- CSS3: css variables are a bad idea. Just allow us to call other selectors. " Rips Domain
- CSS Variables
- Selectors Level 4. W3.org (29 2011). 30 2012.
- Discover What's New in CSS 4 | Webmonkey | Wired.com. Webmonkey (26 2011). 30 2012.
- Web browser standards support
- Mozillas Firefox global usage share is still growing according to OneStat.com
- Contents and browser compatibility
- Details on our CSS changes for IE7 IEBlog
- Cascading Style Sheet Compatibility in Internet Explorer 7 MSDN
- The weird and wonderful world of Internet Explorer
- CSS Compatibility and Internet Explorer MSDN
- Microsoft: Internet Explorer
[]
- , HTML, XHTML CSS , 7- = HTML, XHTML & CSS For Dummies, 7th Edition. .: «», 2011. 400 . ISBN 978-5-8459-1752-2
- HTML, XHTML CSS. , 5- = HTML, XHTML, and CSS Bible, 5th Edition. .: «», 2010. 656 . ISBN 978-5-8459-1676-1
- , , CSS: Web- = CSS Mastery: Advanced Web Standards Solutions. .: «», 2008. 272 . ISBN 978-5-8459-1199-5
- . CSS. = CSS. Cookbook. .: -, 2007. 592 . ISBN 978-5-9775-0075-3
- . . CSS- : = Cascading Style Sheets: The definitive Guide. .: , 2006. 576 . ISBN 5-93286-075-8
[]
[]
[]
| (, ) | |
|---|---|
| · - · | |
| CSS · DSSSL · XSL | |
| JSSS · FOSI · Qt Style Sheets · Sass · LESS · SMIL Timesheets | |
|
Canonical XML CDF CSS DOM Geolocation API HTML ITS MathML OWL P3P PLS RDF (Schema) SISR SKOS SMIL SOAP SRGS SSML SVG SPARQL Timed Text VoiceXML WSDL XForms XHTML XHTML+RDFa XInclude XLink XML (Base Encryption Events Information Set namespace Schema Signature) XPath / 1.0 / 2.0 XPointer XProc XQuery XSL XSL-FO XSLT () XUP |
|
| Guidelines | |
| Initiative | |
| Deprecated | |
| - | |
|---|---|
| |
() ( ) - - - () BitTorrent- ( ) |
| |
¸ (SEO) |
| , , |
|
|
- () |
|