{"id":5195,"date":"2016-07-31T16:31:41","date_gmt":"2016-07-31T08:31:41","guid":{"rendered":"https:\/\/sdeno.com\/?p=5195"},"modified":"2016-07-31T16:31:41","modified_gmt":"2016-07-31T08:31:41","slug":"ie8-css-hack%e5%8f%aa%e6%9c%89ie8%e6%b5%8f%e8%a7%88%e5%99%a8%e8%83%bd%e8%af%86%e5%88%ab","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5195","title":{"rendered":"IE8 CSS hack\u53ea\u6709IE8\u6d4f\u89c8\u5668\u80fd\u8bc6\u522b"},"content":{"rendered":"<h2 style=\"font-weight: bold; color: #666666;\">\u7b2c\u4e00\u79cd\uff1a\u201d\\9\u2033\uff1a<\/h2>\n<p style=\"color: #666666;\">\u57fa\u672c\u7684\u5199\u6cd5:<\/p>\n<div style=\"color: #666666;\">\n<div>\n<div><code>1.<\/code><code>.test { color<\/code><code>\/*\\**\/<\/code><code>:\u00a0<\/code><code>blue<\/code><code>\\<\/code><code>9<\/code>\u00a0<code>}<\/code><\/div>\n<\/div>\n<\/div>\n<p style=\"color: #666666;\">\u8fd9\u4e2aIE6\u3001IE7\u3001IE8\u90fd\u80fd\u8bc6\u522b\uff1b\u4f46\u662fIE8\u4e0d\u80fd\u8bc6\u522b\u201c*\u201d\u548c\u201c_\u201d\u7684css hack\uff1b\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u5199hack\uff1a<span style=\"color: #ffffff;\">(\u8f6c\u8f7d<\/span><\/p>\n<div style=\"color: #666666;\">\n<div>\n<div><code>1.<\/code><code>.header {<\/code><code>width<\/code><code>:<\/code><code>300px<\/code><code>;}\u00a0<\/code><code>\/* \u6240\u6709\u6d4f\u89c8\u5668*\/<\/code><\/div>\n<div><code>2.<\/code><code>.header {width<\/code><code>\/*\\**\/<\/code><code>:<\/code><code>330px<\/code><code>\\<\/code><code>9<\/code><code>;}\u00a0<\/code><code>\/* \u6240\u6709\u6d4f\u89c8\u5668IE\u6d4f\u89c8\u5668 *\/<\/code><\/div>\n<div><code>3.<\/code><code>.header {*<\/code><code>width<\/code><code>:<\/code><code>310px<\/code><code>;}\u00a0<\/code><code>\/* IE7\u548cIE6\u80fd\u8bc6\u522b,IE8\u548cFF\u4e0d\u80fd\u8bc6\u522b*\/<\/code><\/div>\n<div><code>4.<\/code><code>.header {<\/code><code>_width<\/code><code>:<\/code><code>290px<\/code><code>;}\u00a0<\/code><code>\/* IE6\u80fd\u8bc6\u522b\uff0cIE7\u3001IE8\u548cFF\u4e0d\u80fd\u8bc6\u522b*\/<\/code><\/div>\n<\/div>\n<\/div>\n<p style=\"color: #666666;\">\n<h2 style=\"font-weight: bold; color: #666666;\">\u7b2c\u4e8c\u79cd\uff1a\u5c31\u662f\u4f7f\u7528IE\u7684\u6761\u4ef6\u6ce8\u91ca<\/h2>\n<p style=\"color: #666666;\">\u5177\u4f53\u53ef\u4ee5\u67e5\u770b\u8fd9\u91cc\uff1a<a style=\"color: #0681ba;\" href=\"http:\/\/www.css88.com\/archives\/705\" target=\"_blank\">http:\/\/www.css88.com\/archives\/705<\/a>\uff1b<\/p>\n<h2 style=\"font-weight: bold; color: #666666;\">\u5176\u4ed6\u4e00\u4e9bcss hack\u7684\u6d4b\u8bd5\uff1a<\/h2>\n<div style=\"color: #666666;\">\n<div>\n<div><code>1.<\/code><code>.color<\/code><code>1<\/code><code>{\u00a0<\/code><code>color<\/code><code>:<\/code><code>#F00<\/code><code>; color<\/code><code>\/*\\**\/<\/code><code>:<\/code><code>#00F<\/code>\u00a0<code>\/*\\**\/<\/code><code>}<\/code><code>\/*IE6,IE7,IE8,FF,OP,SA\u8bc6\u522b*\/<\/code><\/div>\n<div><code>2.<\/code><code>.color<\/code><code>2<\/code><code>{\u00a0<\/code><code>color<\/code><code>:<\/code><code>#F00<\/code><code>; color\u00a0<\/code><code>\/*\\**\/<\/code><code>:<\/code><code>#00F<\/code>\u00a0<code>\/*\\9**\/<\/code><code>}<\/code><code>\/*IE7,IE8,FF,OP,SA\u8bc6\u522b*\/<\/code><\/div>\n<div><code>3.<\/code><code>.color<\/code><code>3<\/code><code>{\u00a0<\/code><code>color<\/code><code>:<\/code><code>#F00<\/code><code>; color<\/code><code>\/*\\**\/<\/code><code>:<\/code><code>#00F<\/code>\u00a0<code>\\<\/code><code>9<\/code><code>}<\/code><code>\/*IE6,IE7,IE8\u8bc6\u522b*\/<\/code><\/div>\n<div><code>4.<\/code><code>.color<\/code><code>4<\/code><code>{\u00a0<\/code><code>color<\/code><code>:<\/code><code>#F00<\/code><code>; color\u00a0<\/code><code>\/*\\**\/<\/code><code>:<\/code><code>#00F<\/code><code>\\<\/code><code>9<\/code><code>}<\/code><code>\/*IE7,IE8\u8bc6\u522b*\/<\/code><code>\/*\u201ccolor\u201d\u548c\u201c\/*\\**\/<\/code><code>\u201d\u4e4b\u95f4\u6709\u4e2a\u7a7a\u683c*\/<\/code><\/div>\n<\/div>\n<\/div>\n<p style=\"color: #666666;\">\u5176\u4e2d\uff1aOP\u8868\u793aOpera\uff0cSA\u8868\u793aSafari<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u79cd\uff1a\u201d\\9\u2033\uff1a \u57fa\u672c\u7684\u5199\u6cd5: 1..test { color\/*\\**\/:\u00a0blue\\9\u00a0} \u8fd9\u4e2aIE6\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-5195","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5195"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5195\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}