{"id":114,"date":"2008-08-24T02:02:00","date_gmt":"2008-08-24T05:02:00","guid":{"rendered":"http:\/\/escovadordebit.web6203.kinghost.net\/2008\/08\/24\/imagens-png-no-internet-explorer\/"},"modified":"2008-08-24T02:02:00","modified_gmt":"2008-08-24T05:02:00","slug":"imagens-png-no-internet-explorer","status":"publish","type":"post","link":"https:\/\/escovadordebit.com.br\/?p=114","title":{"rendered":"Imagens PNG no Internet Explorer"},"content":{"rendered":"<p>Levei uma tremenda surra quando comecei a fazer um site, e tive que expotar as imagens em PNG, mas n\u00e3o era somente isso precisava realmente fazer com que a imagem ficasse transparente e com sombra, depois de uma vasta varrida no Pai dos Bur&#8230; rs, ou seja, o Google! Achei uma solu\u00e7\u00e3o para meu problema, e resolvi compartilhar com todos na web.<\/p>\n<p>primeiro fa\u00e7o o seguinte informo que s\u00f3 \u00e9 v\u00e1lido  abaixo de Internet Explorer 7, \u00e9 necess\u00e1rio colocar entre a tag HEAD:<br \/><!--[if lt IE 7]>    <link rel=\"stylesheet\" href=\"png_fix.css\" type=\"text\/css\"><![endif]-->&lt;!&#8211;[if lt IE 7]&gt;<br \/>    &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;png_fix.css&#8221; type=&#8221;text\/css&#8221;&gt;<br \/>&lt;![endif]&#8211;&gt;<\/p>\n<p>depois coloco no caminho o seguinte arquivo: png_fix.css<\/p>\n<p>\/* pngfix *\/<br \/>.png,<br \/>img{<br \/>   behavior: expression(  <br \/>       (<br \/>       this.origBg = this.origBg?<br \/>           this.origBg<br \/>           :<br \/>           this.currentStyle.backgroundImage.toString().replace(&#8216;url(&#8220;&#8216;,&#8221;).replace(&#8216;&#8221;)&#8217;,&#8221;)<br \/>       ),  <br \/>       this.behaviorSet == undefined?<br \/>       (<br \/>               this.origBg.match(\/.png$\/) == null?<br \/>               (this.nodeName == &#8220;IMG&#8221; &amp;&amp; this.src.match(\/.png$\/))?<br \/>               (<br \/>                   this.runtimeStyle.filter = &#8220;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&#8221; + this.src + &#8220;&#8216;, sizingMethod=&#8217;image&#8217;)&#8221;,<br \/>                   this.src = &#8220;imagens\/transparente.gif&#8221;<br \/>               )<br \/>               :<br \/>               null<br \/>           :<br \/>               this.origBg.match(\/.png$\/)?<br \/>               (this.runtimeStyle.filter = &#8220;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&#8221; + this.origBg + &#8220;&#8216;, sizingMethod='&#8221; + ((this.currentStyle.backgroundRepeat == &#8220;no-repeat&#8221;)? &#8220;crop&#8221; : &#8220;scale&#8221;) + &#8220;&#8216;)&#8221;,<br \/>               this.style.background = &#8216;none&#8217;):null<br \/>       )<br \/>       :<br \/>       null<br \/>       ,<br \/>       this.style.behavior=&#8217;none&#8217;,<br \/>       this.runtimeStyle.behavior=&#8217;none&#8217;,<br \/>       this.behaviorSet = true<br \/>   );<br \/>}<\/p>\n<p>mas temos q tomar muito cuidado com o Firefox, pois ele funciona PNG com transpar\u00eancia normalmente, ser\u00e1 necess\u00e1rio identificar o browser usado, e aplicar este fix somente quando o usu\u00e1rio estiver usando o Internet Explorer.<\/p>\n<p>Infelizemente n\u00e3o consegui testar em todos os browser, seria legal quem tivesse vontade de compartilhar quais os browser que o PNG funciona normalmente, coloquem um POST indicando o Browser testado.<\/p>\n<p>&#8211; Firefox (Funciona)<br \/>&#8211; Internet Explorer (N\u00c3O Funciona) &#8211; Precisa do FIX<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Levei uma tremenda surra quando comecei a fazer um site, e tive que expotar as imagens em PNG, mas n\u00e3o era somente isso precisava realmente fazer com que a imagem ficasse transparente e com sombra, depois de uma vasta varrida no Pai dos Bur&#8230; rs, ou seja, o Google! Achei uma solu\u00e7\u00e3o para meu problema, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-tecnobit"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Imagens PNG no Internet Explorer - Escovador de Bit<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/escovadordebit.com.br\/?p=114\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Imagens PNG no Internet Explorer - Escovador de Bit\" \/>\n<meta property=\"og:description\" content=\"Levei uma tremenda surra quando comecei a fazer um site, e tive que expotar as imagens em PNG, mas n\u00e3o era somente isso precisava realmente fazer com que a imagem ficasse transparente e com sombra, depois de uma vasta varrida no Pai dos Bur&#8230; rs, ou seja, o Google! Achei uma solu\u00e7\u00e3o para meu problema, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/escovadordebit.com.br\/?p=114\" \/>\n<meta property=\"og:site_name\" content=\"Escovador de Bit\" \/>\n<meta property=\"article:published_time\" content=\"2008-08-24T05:02:00+00:00\" \/>\n<meta name=\"author\" content=\"Martin Muller martin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Martin Muller martin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114#article\",\"isPartOf\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114\"},\"author\":{\"name\":\"Martin Muller martin\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653\"},\"headline\":\"Imagens PNG no Internet Explorer\",\"datePublished\":\"2008-08-24T05:02:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114\"},\"wordCount\":306,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\"},\"articleSection\":[\"TecnoBit\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/escovadordebit.com.br\/?p=114#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114\",\"url\":\"https:\/\/escovadordebit.com.br\/?p=114\",\"name\":\"Imagens PNG no Internet Explorer - Escovador de Bit\",\"isPartOf\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#website\"},\"datePublished\":\"2008-08-24T05:02:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/escovadordebit.com.br\/?p=114\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/escovadordebit.com.br\/?p=114#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/escovadordebit.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Imagens PNG no Internet Explorer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/escovadordebit.com.br\/#website\",\"url\":\"https:\/\/escovadordebit.com.br\/\",\"name\":\"Escovador de Bit\",\"description\":\"Escove escove at\u00e9 achar o problema\",\"publisher\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/escovadordebit.com.br\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/escovadordebit.com.br\/#organization\",\"name\":\"Escovador de Bit\",\"url\":\"https:\/\/escovadordebit.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png\",\"contentUrl\":\"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png\",\"width\":99,\"height\":75,\"caption\":\"Escovador de Bit\"},\"image\":{\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653\",\"name\":\"Martin Muller martin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/escovadordebit.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Martin Muller martin\"},\"url\":\"https:\/\/escovadordebit.com.br\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Imagens PNG no Internet Explorer - Escovador de Bit","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/escovadordebit.com.br\/?p=114","og_locale":"pt_BR","og_type":"article","og_title":"Imagens PNG no Internet Explorer - Escovador de Bit","og_description":"Levei uma tremenda surra quando comecei a fazer um site, e tive que expotar as imagens em PNG, mas n\u00e3o era somente isso precisava realmente fazer com que a imagem ficasse transparente e com sombra, depois de uma vasta varrida no Pai dos Bur&#8230; rs, ou seja, o Google! Achei uma solu\u00e7\u00e3o para meu problema, [&hellip;]","og_url":"https:\/\/escovadordebit.com.br\/?p=114","og_site_name":"Escovador de Bit","article_published_time":"2008-08-24T05:02:00+00:00","author":"Martin Muller martin","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Martin Muller martin","Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/escovadordebit.com.br\/?p=114#article","isPartOf":{"@id":"https:\/\/escovadordebit.com.br\/?p=114"},"author":{"name":"Martin Muller martin","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653"},"headline":"Imagens PNG no Internet Explorer","datePublished":"2008-08-24T05:02:00+00:00","mainEntityOfPage":{"@id":"https:\/\/escovadordebit.com.br\/?p=114"},"wordCount":306,"commentCount":0,"publisher":{"@id":"https:\/\/escovadordebit.com.br\/#organization"},"articleSection":["TecnoBit"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/escovadordebit.com.br\/?p=114#respond"]}]},{"@type":"WebPage","@id":"https:\/\/escovadordebit.com.br\/?p=114","url":"https:\/\/escovadordebit.com.br\/?p=114","name":"Imagens PNG no Internet Explorer - Escovador de Bit","isPartOf":{"@id":"https:\/\/escovadordebit.com.br\/#website"},"datePublished":"2008-08-24T05:02:00+00:00","breadcrumb":{"@id":"https:\/\/escovadordebit.com.br\/?p=114#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/escovadordebit.com.br\/?p=114"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/escovadordebit.com.br\/?p=114#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/escovadordebit.com.br\/"},{"@type":"ListItem","position":2,"name":"Imagens PNG no Internet Explorer"}]},{"@type":"WebSite","@id":"https:\/\/escovadordebit.com.br\/#website","url":"https:\/\/escovadordebit.com.br\/","name":"Escovador de Bit","description":"Escove escove at\u00e9 achar o problema","publisher":{"@id":"https:\/\/escovadordebit.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/escovadordebit.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/escovadordebit.com.br\/#organization","name":"Escovador de Bit","url":"https:\/\/escovadordebit.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png","contentUrl":"https:\/\/escovadordebit.com.br\/wp-content\/uploads\/2017\/11\/cropped-cropped-escovadordebit-2.png","width":99,"height":75,"caption":"Escovador de Bit"},"image":{"@id":"https:\/\/escovadordebit.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/3a14e341de3660629f9c1e39dfe6d653","name":"Martin Muller martin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/escovadordebit.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Martin Muller martin"},"url":"https:\/\/escovadordebit.com.br\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":0,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/escovadordebit.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}