CSS学习遇到问题,注释问题

<!DOCTYPE HTML>

<head>
        <style type="text/css">
            <!--h1em{color:red}-->
            ul em{color:red;font-weight:bold}
            h1 > strong {color:red}
        </style>
 </head>

 

显示

 

 

<head>
        <style type="text/css">
            <!--h1 em{color:red}-->
            ul em{color:red;font-weight:bold}
            h1 > strong {color:red}
            
        </style>
</head>

 

显示

 

 

有空格和没有空格有区别

 

posted @ 2015-05-20 20:04  小屁孩988  阅读(95)  评论(0编辑  收藏  举报