日期:2014-05-17  浏览次数:20704 次

CSS 属性继承
在IE8,Firefox,   Safari中DIV在没有设置背景颜色,怎样让DIV继承Span的背景颜色,需要什么CSS设置

<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=GB2312 ">
<title> Background </title>
<style   type= "text/css ">
.para{
  font-family:Arial;
font-size:10pt;
}
</style>
</head>

<body>
        <span   style= "background-color:red; ">
  <div   class= "para ">
The   duties   and   responsibilities   of   Check   Airman,   Check   Dispatcher,   Check   Flight   Attendant,   and   Ground,   Aircraft   and   Simulator
Instructors   are   detailed   in   the   Crewmember   and   Dispatcher   Training   Manual.
  </div>
        </span>                                                                                    
</body>
</html>

------解决方案--------------------
探讨
是的 原本不能继承的 现在就是需要span下面的div也有背景颜色