主流浏览器css兼容问题的总结
.selector {
color: #ff0主流浏览器css兼容问题的总结
.selector {
color: #ff0\0;/*ie8*/
color: #f00\9\0;/*ie9+*/
}
<!DOCTYPE html>
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en"> <!--<![endif]-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<div id="parent" class="parent">
<p class="p">p</p>
</div>
<div id="parent" class="parent">
<div class="mid">
<p id="p" class="p">p</p>
<div>
</div>
;/*ie8*/