Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Inheritance 继承接受主体属性_Inheritance - Fatal编程技术网

Inheritance 继承接受主体属性

Inheritance 继承接受主体属性,inheritance,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:ar

这是我的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;
    }

发送
css:
身体{
字体系列:arial;
颜色:#444;
}
a{
颜色:#2C7EC7;
文字装饰:无;
}
.集装箱{
宽度:900px;
填充:15px;
保证金:0自动;
}
.行动{
利润率:0.15px;
填充物:5px10px;
边界:0无;
大纲:无;
颜色:#FFFFFF;
字体大小:14px;
背景:5F5F;
}
a、 更多链接{
填充:0;
背景:无;
颜色:继承;
}

更多链接不采用我的主题中使用的默认锚标记的颜色。或者,我应该如何将默认锚定颜色设置为锚定标记中设置的任何其他类。

可能重复的谢谢:)。但我不是在询问锚定标记的浏览器默认颜色值。我需要为锚定标记设置一种颜色,并且我需要将该值继承到css中我想要的任何位置。例如:对于这个类,我不允许使用任何颜色值,但我需要获得锚的颜色值,我将其设置为css的顶部。不确定你想要什么。。。这是你可以处理的吗?