{"id":262396,"date":"2015-07-28T11:02:02","date_gmt":"2015-07-28T07:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262396"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262396","title":{"rendered":"How-to: \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u0432 Gmail"},"content":{"rendered":"<p>     \t<a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/263699\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/848\/dda\/6eb\/848dda6eb8b14d8cbc9efdca8d049b06.jpg\"\/><\/a><\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043c\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 <a href=\"https:\/\/pechkin-mail.ru\/?utm_source=habr&amp;utm_medium=referral&amp;utm_campaign=gmail_adaptive\">\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043e\u043a<\/a> (<a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/262585\/\">\u0440\u0430\u0437<\/a>, <a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/256853\/\">\u0434\u0432\u0430<\/a>, <a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/257397\/\">\u0442\u0440\u0438<\/a>) \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0434\u0435\u043b\u044f\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 email-\u0432\u0435\u0440\u0441\u0442\u043a\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0438\u0441\u0435\u043c \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 Gmail, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0435\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043a\u0443\u0434\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0442\u043a\u0438. \u0414\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u0445\u043d\u0438\u043a\u0443 \u0432 2014 \u0433\u043e\u0434\u0443 <a href=\"http:\/\/freshinbox.com\/blog\/interactive-emails-in-gmail-using-css-attribute-selectors\/\">\u043e\u043f\u0438\u0441\u0430\u043b<\/a> \u0414\u0436\u0430\u0441\u0442\u0438\u043d \u0425\u0443 (Justin Khoo), \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u043c\u0435\u0442\u043e\u0434 \u0431\u044b\u043b \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d <a href=\"http:\/\/emailcodegeek.com\/responsive-email-in-gmail\/\">\u0441\u0442\u0430\u0442\u044c\u0435\u0439<\/a> \u041c\u0430\u0440\u043a\u0430 \u0420\u043e\u0431\u0431\u0438\u043d\u0441\u0430 \u0432 \u0431\u043b\u043e\u0433\u0435 Email Code Geek. \u041c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0432\u0443\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439.<a name=\"habracut\"><\/a><\/p>\n<h4>\u0418\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u0432 Gmail<\/h4>\n<p>  Gmail \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c CSS-\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0435 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>title<\/code>). \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432 \u043f\u0438\u0441\u044c\u043c\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0441 hover-\u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 \u0432 \u043a\u043e\u0434 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0434\u0432\u0430 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 (<code>.divbox<\/code>) \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 (<code>class=\u201ddivbox\u201d<\/code>), \u0447\u0442\u043e\u0431\u044b \u044d\u0444\u0444\u0435\u043a\u0442 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0438 \u0432 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445, \u0432\u044b\u0440\u0435\u0437\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 Yahoo! Mail).<\/p>\n<pre><code class=\"html\">&lt;html&gt; &lt;head&gt; &lt;style&gt; .divbox, * [lang~=&quot;x-divbox&quot;]:hover{   background-color: green !important;   color: white; } &lt;\/style&gt; &lt;\/head&gt; &lt;body&gt; &lt;div class=&quot;divbox&quot; lang=&quot;x-divbox&quot; style=&quot;padding:10px;width:100px;height:40px; background-color:#eeeeee;&quot;&gt;Divbox Content&lt;\/div&gt; &lt;\/body&gt; <\/code><\/pre>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code>lang<\/code> \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0447\u0438\u0441\u043b\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Gmail \u043d\u0435 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u0442 (\u0432 \u044d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435 <code>title<\/code>, <code>lang<\/code>, <code>width<\/code>, <code>alt<\/code>, <code>href<\/code>). \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>title<\/code>, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u00ab\u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442\u00bb \u2014 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043a\u0443\u0440\u0441\u043e\u0440\u0430, \u044d\u0442\u043e\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0431\u044b\u043b \u0431\u044b \u0432\u0438\u0434\u0438\u043c. <code>Lang<\/code> \u0436\u0435, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0435\u043d (\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432) \u0438 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u0412 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f\u0445 HTML \u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>\u201cx-\u201d<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code>lang<\/code>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fb2\/cac\/870\/fb2cac87086f45cda32d7d55f597368d.gif\"\/><\/p>\n<p>  \u0410 \u0437\u0434\u0435\u0441\u044c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432\u0441\u0435 \u0441\u0442\u0438\u043b\u0438, \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0432 Gmail \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u043b\u0430\u0441\u044c \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0414\u0436\u0430\u0441\u0442\u0438\u043d\u0430 \u0425\u0443:<\/p>\n<pre><code class=\"css\">* E[foo] * E[foo=&quot;bar&quot;] * E[foo~=&quot;bar&quot;] * E[foo^=&quot;bar&quot;] * E[foo*=&quot;bar&quot;] * E[foo$=&quot;bar&quot;] * E:hover * E:link * E:visited * E:active E F E &gt; F E + F E ~ F <\/code><\/pre>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a Gmail \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 CSS \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043f\u0438\u0441\u044c\u043c\u0430:<\/p>\n<pre><code class=\"css\">.divbox {..}  \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e - Gmail \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043a\u043b\u0430\u0441\u0441\u043e\u0432  #divbox {..}  \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e - Gmail \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u0442 \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 id-\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b    [class~=&quot;divbox&quot;] {...} \/\/\u0423\u0434\u0430\u043b\u0435\u043d Gmail * [class~=&quot;divbox&quot;] {...} \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e \u2014 \u043d\u0435\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u043e\u0432    div {...} \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d, \u043d\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d div:hover {...} \/\/\u0423\u0434\u0430\u043b\u0435\u043d\u043e Gmail. \u041f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f? \u041d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0430\u043a! * div:hover {...} \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e! \u0423\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435\u2026   * [lang~=&quot;x-divbox&quot;] {...} \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c   * [lang~=&quot;x-divbox&quot;]:hover {...} \/\/\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e! \u0422\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e! <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/h4>\n<p>  \u0412\u043e\u0442, \u043a \u0447\u0435\u043c\u0443 \u043c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043c\u0441\u044f (\u0446\u0432\u0435\u0442\u043e\u043c \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u00ab\u0442\u043e\u0447\u043a\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439\u00bb \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430):<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/13b\/f3d\/efc\/13bf3defc03a42e5ba478a9686cc39e2.gif\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u0430\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0432 600 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0442\u043e \u043f\u0435\u0440\u0432\u0443\u044e \u00ab\u0442\u043e\u0447\u043a\u0443 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u00bb (breakpoint) \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0439 \u043e\u0442\u043c\u0435\u0442\u043a\u0435, \u043e\u0434\u043d\u0430\u043a\u043e Gmail \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0448\u0438\u0440\u0438\u043d\u0443 \u043e\u043a\u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0430 \u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 email-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. <\/p>\n<p>  \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u0435\u0434\u0438\u0430\u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043e\u0442\u043c\u0435\u0442\u043a\u0435 \u0432 1160 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u2014 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0448\u0438\u0440\u0438\u043d\u0430 email-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 600 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.<\/p>\n<pre><code class=\"css\">\t@media screen and (max-width:1160px){ \t\t* [lang=x-outer]{ \t\t\twidth:100% !important; \t\t} \t} <\/code><\/pre>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043e\u043a\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0443\u0436\u0435\u043d\u043e \u0434\u043e 700px, \u0442\u043e \u0448\u0438\u0440\u0438\u043d\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0443\u0436\u0435 \u0432\u0441\u0435\u0433\u043e 450px. \u0415\u0441\u043b\u0438 \u0448\u0438\u0440\u0438\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u043c\u0435\u043d\u044c\u0448\u0435, \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u043e\u043b\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0441\u0430\u043c\u044b\u043c \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u043d\u0430 \u043e\u0442\u043c\u0435\u0442\u043a\u0435 \u0432 100% \u0448\u0438\u0440\u0438\u043d\u044b \u044d\u043a\u0440\u0430\u043d\u0430 \u043c\u0438\u043d\u0443\u0441 250 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0438, \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430.<\/p>\n<pre><code class=\"css\">\t@media screen and (max-width:700px){ \t\t* [lang=x-outer]{ \t\t\twidth:calc(100vw - 250px) !important; \t\t\tfloat:left; \t\t} \t} <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f <code>vw<\/code> \u2014 <code>1 vw = 1% viewport width<\/code> (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043e\u043a\u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e\u0441\u044f \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043d\u0430 450px). \u0417\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f Calc (\u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430\u043c\u0438 <code>px<\/code>, <code>%<\/code>, <code>em<\/code>, <code>rem<\/code>, <code>vw<\/code>, <code>vh<\/code> \u0438 \u0442.\u043f.)<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0448 email \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0443\u0436\u0435 300 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u0438 300px \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a 250px \u043b\u0435\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0438, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0434\u0438\u0430\u0437\u0430\u043f\u0440\u043e\u0441, \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0448\u0438\u0440\u0438\u043d\u0443 \u043d\u0430 300px:<\/p>\n<pre><code class=\"css\"> @media screen and (max-width:550px){ \t\t* [lang=x-outer]{ \t\t\twidth:300px !important; \t\t} \t} <\/code><\/pre>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0432\u044b\u0448\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0430 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/263189\/\">mobile friendly-\u043f\u0438\u0441\u0435\u043c<\/a> (\u0435\u0441\u043b\u0438 \u043d\u0435 \u0431\u0440\u0430\u0442\u044c \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u044b \u0438 \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u044b, \u0442\u043e \u0440\u0435\u0434\u043a\u043e \u043a\u0442\u043e \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0447\u0442\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 1160px \u0432 \u0448\u0438\u0440\u0438\u043d\u0443).<\/p>\n<p>  \u041f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 (\u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/codepen.io\/M_J_Robbins\/pen\/iHsIf\">\u043d\u0430 Codepen<\/a>):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot;&gt; &lt;!--xmlns  fix Outlook Scaling--&gt; &lt;head&gt;     &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; \/&gt;     &lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;  &lt;!--Fix Outlook Scaling--&gt;   &lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;o:OfficeDocumentSettings&gt; &lt;o:AllowPNG\/&gt; &lt;o:PixelsPerInch&gt;96&lt;\/o:PixelsPerInch&gt; &lt;\/o:OfficeDocumentSettings&gt; &lt;\/xml&gt;&lt;![endif]--&gt;      &lt;title&gt;Media queries&lt;\/title&gt;  &lt;style&gt; body {     text-size-adjust: none !important;     -ms-text-size-adjust: none !important;     -webkit-text-size-adjust: none !important; } .ExternalClass * {     line-height: 100%; }  table {     border-collapse: collapse;     table-layout: fixed;     margin: 0 auto; } table table table {     table-layout: auto;  }   @media screen and (max-width:1160px){     * [lang=x-outer]{         background: olive;         width:100% !important;     }     .outer.outer{         width:600px !important;     }    }  @media screen and (max-width:700px){     * [lang=x-outer]{         background: teal;         width:calc(100vw - 250px) !important;         float:left;     }     .outer.outer{         width:600px !important;         float:none;     }        } @media screen and (max-width:550px){     * [lang=x-outer]{         background: steelblue;         width:300px !important;     }     .outer.outer{         width:100% !important;     }        }  &lt;\/style&gt;  &lt;\/head&gt; &lt;body&gt; &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#ffffff&quot; &gt;     &lt;tr&gt;         &lt;td&gt;             &lt;table align=&quot;center&quot; width=&quot;600&quot; lang=&quot;x-outer&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;outer&quot;&gt;                    &lt;tr&gt;                     &lt;td&gt;                         &lt;div style=&quot;padding:10px; border:1px solid #444444;&quot;&gt;                             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras fringilla ante nisi, nec scelerisque tellus vehicula a. Integer facilisis justo vel dolor pellentesque varius.                              &lt;br&gt;&lt;br&gt;                             Donec malesuada eleifend nibh, vitae sollicitudin nunc imperdiet a. Quisque pellentesque luctus nibh at varius. Donec ultrices, enim ut lobortis iaculis, nibh ligula malesuada leo, et venenatis velit leo at mi. Proin viverra nulla et nisi pulvinar, sit amet malesuada nunc pharetra. Vestibulum quis sodales enim. Aliquam id mollis nisl.                             &lt;br&gt;&lt;br&gt;                             Integer rhoncus nisl at scelerisque mollis. Proin vel ante dui. Phasellus egestas eu mauris eget congue. Nullam et est faucibus, ultricies sapien quis, pretium odio.                              &lt;br&gt;&lt;br&gt;                             Pellentesque dictum nec odio a pellentesque. Mauris condimentum convallis augue id malesuada. Ut ultricies leo sed odio semper vulputate. Quisque viverra tortor leo, a convallis tortor egestas a. Morbi bibendum, nisi vitae venenatis consectetur, arcu dui blandit nulla, suscipit sodales felis mi sed neque.                              &lt;br&gt;&lt;br&gt;                             Suspendisse tincidunt volutpat quam, vel pharetra nulla tempor rutrum. Nullam tempus molestie lacus, non mattis justo viverra in. Lorem ipsum dolor sit amet, consectetur adipiscing elit.                                               &lt;\/div&gt;                      &lt;\/td&gt;                 &lt;\/tr&gt;             &lt;\/table&gt;         &lt;\/td&gt;     &lt;\/tr&gt; &lt;\/table&gt;  &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Gmail \u043d\u0435 \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u0442 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a \u0441\u0442\u0438\u043b\u044f\u043c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0438 \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430 \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u044b. \u041e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u043b\u0430\u0439\u043d CSS-\u043a\u043e\u0434 \u2014 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Gmail \u0438 Gmail For Businesses \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0442\u0435\u0433 <code>&lt;style&gt;<\/code>.     \t<\/p>\n<div class=\"clear\"><\/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\/263699\/\"> http:\/\/habrahabr.ru\/post\/263699\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/263699\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/848\/dda\/6eb\/848dda6eb8b14d8cbc9efdca8d049b06.jpg\"\/><\/a><\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043c\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 <a href=\"https:\/\/pechkin-mail.ru\/?utm_source=habr&amp;utm_medium=referral&amp;utm_campaign=gmail_adaptive\">\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043e\u043a<\/a> (<a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/262585\/\">\u0440\u0430\u0437<\/a>, <a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/256853\/\">\u0434\u0432\u0430<\/a>, <a href=\"http:\/\/habrahabr.ru\/company\/pechkin\/blog\/257397\/\">\u0442\u0440\u0438<\/a>) \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0434\u0435\u043b\u044f\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 email-\u0432\u0435\u0440\u0441\u0442\u043a\u0435. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0438\u0441\u0435\u043c \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 Gmail, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0435\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043a\u0443\u0434\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0442\u043a\u0438. \u0414\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u0445\u043d\u0438\u043a\u0443 \u0432 2014 \u0433\u043e\u0434\u0443 <a href=\"http:\/\/freshinbox.com\/blog\/interactive-emails-in-gmail-using-css-attribute-selectors\/\">\u043e\u043f\u0438\u0441\u0430\u043b<\/a> \u0414\u0436\u0430\u0441\u0442\u0438\u043d \u0425\u0443 (Justin Khoo), \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u043c\u0435\u0442\u043e\u0434 \u0431\u044b\u043b \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d <a href=\"http:\/\/emailcodegeek.com\/responsive-email-in-gmail\/\">\u0441\u0442\u0430\u0442\u044c\u0435\u0439<\/a> \u041c\u0430\u0440\u043a\u0430 \u0420\u043e\u0431\u0431\u0438\u043d\u0441\u0430 \u0432 \u0431\u043b\u043e\u0433\u0435 Email Code Geek. \u041c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0432\u0443\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439.<\/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-262396","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262396","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=262396"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262396\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}