Inherit采用body属性

时间:2016-03-29 06:58:22

标签: inheritance

这是我的html流程:

<div class="container">
  <button class="action">Send</button>
  <input type="submit" class="action" />
  <a href="" class="action more-link">More</a>
</div>

css:
     body{
        font-family:arial;
        color:#444;
    }
    a{
        color:#2C7EC7;
        text-decoration:none;   
    }
    .container{
        width:900px;
        padding:15px;
        margin:0 auto;  
    }
    .action{
        margin:0 15px;
        padding:5px 10px;
        border:0 none;
        outline:none;
        color:#FFFFFF;
        font-size:14px;
        background:#5F5F5F;
    }
    a.more-link{
        padding:0;
        background:none;    
        color:inherit;
    }

more-link没有采用我主题中使用的默认锚标记的颜色。或者我该怎么做才能将默认锚颜色设置为任何其他设置为锚标记的类。

0 个答案:

没有答案
相关问题