专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > HTML/CSS

CSS 属性继承,该如何解决

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
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也有背景颜色
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: