首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

firefox中的span在这样的情况下会失效吗?该如何处理

2012-02-26 
firefox中的span在这样的情况下会失效吗?#redblock2{color:#000000}#redtitlesmall{color:#FF0033}divi

firefox中的span在这样的情况下会失效吗?
#redblock2{
color:   #000000;
}
#redtitlesmall{
color:   #FF0033;
}


<div   id= "redblock2 ">
                <span   id= "redtitlesmall "> 标题2 </span>
</div>

[解决办法]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=utf-8 " />
<title> 无标题文档 </title>
<style type= "text/css ">
#redblock2{
color: #000000;
}
#redtitlesmall{
color: #FF0033;
}

</style>
</head>

<body>

<div id= "redblock2 ">
<span id= "redtitlesmall "> 标题2 </span>
</div>

</body>
</html>
[解决办法]
没有失效啊,有什么问题?
[解决办法]
理论上说应该没问题
[解决办法]
没问题

热点排行