{"id":161423,"date":"2012-12-05T14:43:05","date_gmt":"2012-12-05T10:43:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=161423"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=161423","title":{"rendered":"<span class=\"post_title\">\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 CSS-\u0441\u043d\u0438\u043f\u043f\u0435\u0442\u044b \u2014 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6b4\/2d3\/5a4\/6b42d35a44d89ccc7bfd12c089003c05.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/159101\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438<\/a> \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 CSS-\u0441\u043d\u0438\u043f\u043f\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<a name=\"habracut\"><\/a><\/p>\n<h2>1. \u0421\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>  \u042d\u0442\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0435\u0435 \u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"css\">\/* \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 *\/ a[href^=&quot;http:\/\/&quot;]{ \tpadding-right: 20px; \tbackground: url(external.gif) no-repeat center right; }  \/* email *\/ a[href^=&quot;mailto:&quot;]{ \tpadding-right: 20px; \tbackground: url(email.png) no-repeat center right; }  \/* pdf *\/ a[href$=&quot;.pdf&quot;]{ \tpadding-right: 20px; \tbackground: url(pdf.png) no-repeat center right; } <\/code><\/pre>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0431\u0443\u043a\u0432\u0438\u0446\u0443 \u2014 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0431\u0443\u043a\u0432\u0443, \u043a\u0430\u043a \u0432 \u043a\u043d\u0438\u0433\u0430\u0445:<\/p>\n<pre><code class=\"css\">p:first-letter{    display:block;    margin:5px 0 0 5px;    float:left;    color:#000;    font-size:60px;    font-family:Georgia; } <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0443\u0433\u043b\u043e\u0432:<\/p>\n<pre><code class=\"css\">.round{    -moz-border-radius: 10px;    -webkit-border-radius: 10px;    border-radius: 10px; \/* future proofing *\/    -khtml-border-radius: 10px; \/* for old Konqueror browsers *\/ } <\/code><\/pre>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432\u043c\u0435\u0441\u0442\u0435:<\/p>\n<pre><code class=\"css\">#multiple-images {    background: url(image_1.png) top left no-repeat,    url(image_2.png) bottom left no-repeat,    url(image_3.png) bottom right no-repeat; } <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430:<\/p>\n<pre><code class=\"css\">::selection {    color: #000000;    background-color: #FF0000; }  ::-moz-selection {    color: #000000;    background: #FF0000; } <\/code><\/pre>\n<h2>2. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430<\/h2>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 @font-face:<\/p>\n<pre><code class=\"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');     } <\/code><\/pre>\n<p>  \u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0432\u0430\u043b \u0441\u0430\u0439\u0442\u0430:<\/p>\n<pre><code class=\"css\">#footer {    position:fixed;    left:0px;    bottom:0px;    height:30px;    width:100%;    background:#999; }  \/* IE 6 *\/ * html #footer {    position:absolute;    top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px'); } <\/code><\/pre>\n<p>  \u041c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043b\u043e\u043d\u043e\u0447\u043d\u043e\u0441\u0442\u044c:<\/p>\n<pre><code class=\"css\">#columns-3 {    text-align: justify;    -moz-column-count: 3;    -moz-column-gap: 12px;    -moz-column-rule: 1px solid #c4c8cc;    -webkit-column-count: 3;    -webkit-column-gap: 12px;    -webkit-column-rule: 1px solid #c4c8cc; } <\/code><\/pre>\n<h2>3. \u0424\u0438\u043a\u0441\u044b<\/h2>\n<p>  \u0423\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0431\u0430\u0440 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 Internet Explorer:<\/p>\n<pre><code class=\"css\">textarea{ \toverflow:auto; } <\/code><\/pre>\n<p>  \u0423\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Internet Explorer:<\/p>\n<pre><code class=\"html\">&lt;!--[if IE]&gt; &lt;script src=&quot;http:\/\/html5shim.googlecode.com\/svn\/trunk\/html5.js&quot;&gt;&lt;\/script&gt; &lt;![endif]--&gt; <\/code><\/pre>\n<p>  Min-height \u0432 Internet Explorer:<\/p>\n<pre><code class=\"css\">.box {    min-height:500px;    height:auto !important;    height:500px; } <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u0441\u0441\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 inline-block:<\/p>\n<pre><code class=\"css\">li {         width: 200px;         min-height: 250px;         border: 1px solid #000;         display: -moz-inline-stack;         display: inline-block;         vertical-align: top;         margin: 5px;         zoom: 1;         *display: inline;         _height: 250px; } <\/code><\/pre>\n<h2>CSS3<\/h2>\n<p>  \u0412\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u043d\u0430 CSS3:<\/p>\n<pre><code class=\"css\">a {   color: #900;   text-decoration: none; }    a:hover {   color: red;   position: relative; }    a[title]:hover:after {   content: attr(title);   padding: 4px 8px;   color: #333;   position: absolute;   left: 0;   top: 100%;   white-space: nowrap;   z-index: 20px;   -moz-border-radius: 5px;   -webkit-border-radius: 5px;   border-radius: 5px;   -moz-box-shadow: 0px 0px 4px #222;   -webkit-box-shadow: 0px 0px 4px #222;   box-shadow: 0px 0px 4px #222;   background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);   background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eeeeee),color-stop(1, #cccccc)); } <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u043c\u0435\u0440 \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 CSS3:<\/p>\n<pre><code class=\"css\">body {   background: #000 url(http:\/\/birdoflight.files.wordpress.com\/2009\/10\/frida-kahlo-1.jpg) center center fixed no-repeat;   -moz-background-size: cover;   background-size: cover; }    @media only all and (max-width: 1024px) and (max-height: 768px) {   body {        -moz-background-size: 1024px 768px;     background-size: 1024px 768px;   } } <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u043c\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 CSS3:<\/p>\n<pre><code class=\"css\">.blur {    color: transparent;    text-shadow: 0 0 5px rgba(0,0,0,0.5); } <\/code><\/pre>\n<p>  \u0422\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 CSS3:<\/p>\n<pre><code class=\"css\">h1 {   text-shadow: 0 1px 0 #ccc,                0 2px 0 #c9c9c9,                0 3px 0 #bbb,                0 4px 0 #b9b9b9,                0 5px 0 #aaa,                0 6px 1px rgba(0,0,0,.1),                0 0 5px rgba(0,0,0,.1),                0 1px 3px rgba(0,0,0,.3),                0 3px 5px rgba(0,0,0,.2),                0 5px 10px rgba(0,0,0,.25),                0 10px 10px rgba(0,0,0,.2),                0 20px 20px rgba(0,0,0,.15); }  <\/code><\/pre>\n<h2>5. \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d<\/h2>\n<p>  \u041c\u0435\u0442\u0430-\u0442\u0435\u0433\u0438 \u0434\u043b\u044f \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0441 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u043e\u0439, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438 \u044d\u043a\u0440\u0430\u043d\u043e\u0432:<\/p>\n<pre><code class=\"html\">&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no&quot;&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt; &lt;meta name=&quot;HandheldFriendly&quot; content=&quot;true&quot;&gt; <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/161423\/\"> http:\/\/habrahabr.ru\/post\/161423\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6b4\/2d3\/5a4\/6b42d35a44d89ccc7bfd12c089003c05.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/159101\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0438<\/a> \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 CSS-\u0441\u043d\u0438\u043f\u043f\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-161423","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161423"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161423\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}