我试图弄清楚为什么我的一个css类似乎覆盖了另一个(而不是相反)
这里我有两个css类
.smallbox {
background-color: white;
height: 75px;
width: 150px;
font-size:20px;
box-shadow: 0 0 10px #ccc;
font-family: inherit;
}
.smallbox-paysummary {
@extend .smallbox;
font-size:10px;
}
Run Code Online (Sandbox Code Playgroud)
在我看来,我打电话
<pre class = "span12 pre-scrollable smallbox-paysummary smallbox ">
Run Code Online (Sandbox Code Playgroud)
字体(重叠元素)显示为10px而不是20 - 有人可以解释为什么会这样吗?
我访问的网络项目链接不会下划线,但是,其余访问的修改正在工作,并且下划线适用于悬停。我给我的老师看了这个,他很困惑,并说他会尽力找时间看一下,但是,截止日期已临近,我不能再等待了。这是我的布局页面中处理锚标记的部分:
a:link
{
text-decoration: none;
color: #d1bd22;
font-size: 1.3em;
}
a:visited
{
text-decoration: underline;
color: white;
font-size: 1.3em;
}
a:hover
{
text-decoration: underline;
color: #d1bd22;
font-size: 1.3em;
}
a:active
{
text-decoration: none;
color: white;
font-size: 1.3em;
}
Run Code Online (Sandbox Code Playgroud)
这是我的网站的链接: