相关疑难解决方法(0)

CSS的优先顺序是什么?

我试图弄清楚为什么我的一个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 - 有人可以解释为什么会这样吗?

html css

85
推荐指数
7
解决办法
9万
查看次数

访问过的链接不会下划线

我访问的网络项目链接不会下划线,但是,其余访问的修改正在工作,并且下划线适用于悬停。我给我的老师看了这个,他很困惑,并说他会尽力找时间看一下,但是,截止日期已临近,我不能再等待了。这是我的布局页面中处理锚标记的部分:

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)

这是我的网站的链接:

http://cis.luzerne.edu/~ds0002/morlansknownshop.html

html css anchor

2
推荐指数
1
解决办法
812
查看次数

标签 统计

css ×2

html ×2

anchor ×1