码迷,mamicode.com
首页 > 其他好文 > 详细

mark住先

时间:2014-12-17 18:04:34      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:style   ar   color   sp   div   bs   ad   html   as   

<!DOCTYPE HTML>
<html>
<html>
<head>    
<style type="text/css">
    #redP p { /* 权值 = 100+1=101 */           
             color:#F00;  /* 红色 */        }         
    #redP .red em { /* 权值 = 100+10+1=111 */             
             color:#00F; /* 蓝色 */         }  
    #redP p span em { /* 权值 = 100+1+1+1=103 */             
             color:#FF0;/*黄色*/        }    
</style>  
</head>  
<body>     
    <div id="redP">        
      <p class="red">red<span><em>em red</em></span> </p>        
      <p>red</p>     
    </div>  
</body> 
</html>

mark住先

标签:style   ar   color   sp   div   bs   ad   html   as   

原文地址:http://www.cnblogs.com/xanthechum/p/4169928.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!