{"id":161041,"date":"2012-12-03T00:08:03","date_gmt":"2012-12-02T20:08:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=161041"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=161041","title":{"rendered":"<span class=\"post_title\">\u0421\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u043b\u0438 \u0432 \u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0432\u0448\u0435\u0439 \u0443\u0436\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5f8\/fe6\/38b\/5f8fe638beaf28df4d9b7c35a4fd96a9.png\"\/><\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u043e\u043f\u0438\u043a\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u043e\u043a\u043e\u043d \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0438. \u0410 \u0442\u0430\u043a\u0436\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u043e\u043d\u0443\u0441\u0430 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u043f\u0430\u043f\u044b \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0438\u043c \u0431\u043b\u043e\u043a\u043e\u043c.<\/p>\n<pre><code class=\"html\">&lt;div class=&quot;popup bottom&quot;&gt; \t&lt;!-- \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043e\u043a\u043d\u0430 --&gt; &lt;\/div&gt;<\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u0447\u043a\u0438 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c CSS<\/h4>\n<p>  \u0413\u0434\u0435-\u0442\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043c\u043d\u043e\u0439 \u0431\u044b\u043b \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u0447\u043a\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS-\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>border<\/code>.<\/p>\n<p>  \u0412\u043e\u0442 <a href=\"http:\/\/jsfiddle.net\/mcrss\/Zfgc9\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0432\u0435\u0440\u0445 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0432\u044b\u0441\u043e\u0442\u043e\u0439 10 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0438 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 20 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.<\/p>\n<pre><code class=\"css\">.triangle { \tposition: absolute; \tborder-left: 10px solid transparent; \tborder-right: 10px solid transparent; \tborder-bottom: 10px solid #e0e0e0; }<\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0431\u043b\u043e\u043a \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0441 \u0432\u0438\u0434\u0438\u043c\u043e\u0439 \u043d\u0438\u0436\u043d\u0435\u0439 \u0440\u0430\u043c\u043a\u043e\u0439 \u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c\u0438 \u0431\u043e\u043a\u043e\u0432\u044b\u043c\u0438. \u041d\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0435\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u2014 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Firefox) \u0432 \u043c\u0435\u0441\u0442\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0438\u0436\u043d\u0435\u0439 \u0440\u0430\u043c\u043a\u0438 \u0432 \u0431\u043e\u043a\u043e\u0432\u0443\u044e \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0442\u0435\u043c\u043d\u0430\u044f \u043e\u043a\u0430\u043d\u0442\u043e\u0432\u043a\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u0442\u0438\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0431\u043e\u043a\u043e\u0432\u044b\u0445 \u0440\u0430\u043c\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u0440\u043d\u044b\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043c <code>transparent<\/code> \u043d\u0430 <code>rgba(224, 224, 224, 0)<\/code>.<\/p>\n<pre><code class=\"css\">.triangle { \tposition: absolute; \tborder-left: 10px solid rgba(224, 224, 224, 0); \tborder-right: 10px solid rgba(224, 224, 224, 0); \tborder-bottom: 10px solid #e0e0e0; }<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 <a href=\"http:\/\/jsfiddle.net\/mcrss\/Zfgc9\/1\/\">\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a> \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430.<\/p>\n<h4>\u041f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u043c \u043d\u0430\u0448 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u043a \u0431\u043b\u043e\u043a\u0443 \u0441 \u043f\u043e\u043f\u0430\u043f\u043e\u043c<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 <a href=\"http:\/\/jsfiddle.net\/mcrss\/DLrUM\/\">\u043e\u043a\u043d\u043e<\/a> \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u0435\u043a.<\/p>\n<pre><code class=\"html\">&lt;div class=&quot;popup&quot;&gt; \t&lt;h2&gt;\u041f\u0440\u0438\u0432\u0435\u0442!&lt;\/h2&gt; \t&lt;p&gt;\u042f &ndash; \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e.&lt;\/p&gt; &lt;\/div&gt;\u200b<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">.popup { \tposition: absolute; \tmax-width: 400px; \tborder: 1px solid #71653a; \tborder-radius: 5px; \tpadding: 20px; \tcolor: #71653a; \tbackground-color: #fff1be; \tbox-shadow: 0 1px 10px rgba(0, 0, 0, 0.2); }\u200b<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f4b\/a2f\/5dd\/f4ba2f5dd61c65cec16abd8cbdf2ef72.png\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043c\u0443 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 <a href=\"http:\/\/jsfiddle.net\/mcrss\/DLrUM\/1\/\">\u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f<\/a> \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c <code>:before<\/code>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430 \u043b\u0438\u0448\u043d\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438.<\/p>\n<pre><code class=\"css\">.popup:before { \tcontent: &quot;&quot;; \tposition: absolute; \tborder-left: 10px solid rgba(113, 101, 58, 0); \tborder-right: 10px solid rgba(113, 101, 58, 0); \tborder-bottom: 10px solid #71653a; \tleft: 20px; \ttop: -10px; }\u200b<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/676\/0da\/af5\/6760daaf51c0b86e92fd442527d9f44f.png\"\/><\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u043d\u0430\u0448 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u0447\u0435\u043a \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0441\u044f \u043a \u0431\u043b\u043e\u043a\u0443 \u0441 \u043e\u043a\u043d\u043e\u043c \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043e\u043a\u043d\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0437 \u0440\u0430\u043c\u043a\u0438, \u043d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0432 \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430 \u043e\u043a\u043d\u0430. \u0412 \u043d\u0430\u0448\u0435\u043c \u0436\u0435 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443 \u043e\u043a\u043d\u0430 \u0435\u0441\u0442\u044c \u0440\u0430\u043c\u043a\u0430, \u0438 \u0442\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0441\u044f \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u043e.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <code>:before<\/code> \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041d\u043e <a href=\"http:\/\/jsfiddle.net\/mcrss\/DLrUM\/2\/\">\u043d\u0435 \u0431\u0435\u0434\u0430<\/a> \u2014 \u0443 \u043d\u0430\u0441 \u0432 \u0437\u0430\u043f\u0430\u0441\u0435 \u0435\u0441\u0442\u044c \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>:after<\/code>!<\/p>\n<pre><code class=\"css\">.popup:after { \tcontent: &quot;&quot;; \tposition: absolute; \tborder-left: 10px solid rgba(255, 241, 190, 0); \tborder-right: 10px solid rgba(255, 241, 190, 0); \tborder-bottom: 10px solid #fff1be; \tleft: 20px; \ttop: -9px; }\u200b<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/125\/80b\/6ec\/12580b6ec4f9a0284083086e3f8f7ef7.png\"\/><\/p>\n<p>  \u041d\u0443 \u0432\u043e\u0442, \u0443\u0436\u0435 \u043b\u0443\u0447\u0448\u0435. \u041d\u0430\u0448 <code>:after<\/code> \u043d\u0430\u043b\u043e\u0436\u0438\u043b\u0441\u044f \u043f\u043e\u0432\u0435\u0440\u0445 <code>:before<\/code>, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e.<\/p>\n<h4>\u041d\u0430\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u043a<\/h4>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0438\u043b\u0435\u0439, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u043a \u043e\u043a\u043d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0430: <code>left<\/code>, <code>right<\/code>, <code>top<\/code> \u0438 <code>bottom<\/code>. \u041e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043a\u043d\u0430 \u0441\u043b\u0435\u0432\u0430, \u0441\u043f\u0440\u0430\u0432\u0430, \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0441\u043d\u0438\u0437\u0443 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043e\u0442\u0440\u0435\u043c \u043d\u0430\u0448\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <code>.popup:before<\/code> \u0438 <code>.popup:after<\/code> \u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0438\u0445 \u043e\u0431\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043e\u0434\u0438\u043d \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440.<\/p>\n<pre><code class=\"css\">.popup:before, .popup:after {     content: &quot;&quot;;     position: absolute; }<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0438.<\/p>\n<pre><code class=\"css\">.popup.left:before {     border-left: 10px solid #71653a;     border-top: 10px solid rgba(113, 101, 58, 0);     border-bottom: 10px solid rgba(113, 101, 58, 0);     right: -10px;     top: 20px; }  .popup.left:after {     border-left: 10px solid #fff1be;     border-top: 10px solid rgba(255, 241, 190, 0);     border-bottom: 10px solid rgba(255, 241, 190, 0);     right: -9px;     top: 20px; }  .popup.right:before {     border-right: 10px solid #71653a;     border-top: 10px solid rgba(113, 101, 58, 0);     border-bottom: 10px solid rgba(113, 101, 58, 0);     left: -10px;     top: 20px; }  .popup.right:after {     border-right: 10px solid #fff1be;     border-top: 10px solid rgba(255, 241, 190, 0);     border-bottom: 10px solid rgba(255, 241, 190, 0);     left: -9px;     top: 20px; }  .popup.top:before {     border-left: 10px solid rgba(113, 101, 58, 0);     border-right: 10px solid rgba(113, 101, 58, 0);     border-top: 10px solid #71653a;     left: 20px;     bottom: -10px; }  .popup.top:after {     border-left: 10px solid rgba(255, 241, 190, 0);     border-right: 10px solid rgba(255, 241, 190, 0);     border-top: 10px solid #fff1be;     left: 20px;     bottom: -9px; }  .popup.bottom:before {     border-left: 10px solid rgba(113, 101, 58, 0);     border-right: 10px solid rgba(113, 101, 58, 0);     border-bottom: 10px solid #71653a;     left: 20px;     top: -10px; }  .popup.bottom:after {     border-left: 10px solid rgba(255, 241, 190, 0);     border-right: 10px solid rgba(255, 241, 190, 0);     border-bottom: 10px solid #fff1be;     left: 20px;     top: -9px; }<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 <a href=\"http:\/\/jsfiddle.net\/mcrss\/DLrUM\/3\/\">\u0432\u0441\u0435<\/a>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f\u044b \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438, \u043b\u0438\u0448\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043a\u043b\u0430\u0441\u0441, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0442\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0435 \u043e\u043a\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n<pre><code class=\"html\">&lt;div class=&quot;popup bottom&quot;&gt;     &lt;h2&gt;\u041f\u0440\u0438\u0432\u0435\u0442!&lt;\/h2&gt;     &lt;p&gt;\u042f &ndash; \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u043e\u0439 \u0441\u0432\u0435\u0440\u0445\u0443.&lt;\/p&gt; &lt;\/div&gt;  &lt;div class=&quot;popup top&quot;&gt;     &lt;h2&gt;\u041f\u0440\u0438\u0432\u0435\u0442!&lt;\/h2&gt;     &lt;p&gt;\u042f &ndash; \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u043e\u0439 \u0441\u043d\u0438\u0437\u0443.&lt;\/p&gt; &lt;\/div&gt;  &lt;div class=&quot;popup left&quot;&gt;     &lt;h2&gt;\u041f\u0440\u0438\u0432\u0435\u0442!&lt;\/h2&gt;     &lt;p&gt;\u042f &ndash; \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.&lt;\/p&gt; &lt;\/div&gt;  &lt;div class=&quot;popup right&quot;&gt;     &lt;h2&gt;\u041f\u0440\u0438\u0432\u0435\u0442!&lt;\/h2&gt;     &lt;p&gt;\u0410 \u044f &ndash; \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u0441\u043f\u0440\u0430\u0432\u0430.&lt;\/p&gt; &lt;\/div&gt;<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/638\/e0d\/4db\/638e0d4dbdc218953f7bb17b80275a87.png\"\/>    \t   \t<\/p>\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\/161041\/\"> http:\/\/habrahabr.ru\/post\/161041\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u043b\u0438 \u0432 \u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0432\u0448\u0435\u0439 \u0443\u0436\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5f8\/fe6\/38b\/5f8fe638beaf28df4d9b7c35a4fd96a9.png\"\/><\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u043e\u043f\u0438\u043a\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u043e\u043a\u043e\u043d \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0438. \u0410 \u0442\u0430\u043a\u0436\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u043e\u043d\u0443\u0441\u0430 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u043f\u0430\u043f\u044b \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0438\u043c \u0431\u043b\u043e\u043a\u043e\u043c.<\/p>\n<pre><code class=\"html\">&lt;div class=&quot;popup bottom&quot;&gt; \t&lt;!-- \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043e\u043a\u043d\u0430 --&gt; &lt;\/div&gt;<\/code><\/pre>\n<p>  <\/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-161041","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161041","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=161041"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/161041\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}