小编Mik*_*ike的帖子

CSS不会更改DIV中链接的字体颜色

不确定我缺少什么,但我的HTML忽略了我的链接的CSS样式表规范.我的所有其他CSS定义在整个页面中都能正常工作.任何帮助是极大的赞赏!

我的CSS页面包括:

.footer {
    background:url( );
    margin:0;
    height:70px;
    clear:both;
}

.footer {
    margin:0;
    padding:10px;
    line-height: 175%;
    font:normal 11px helvetica, arial, sans-serif;
    color:#999;
}

a.footer {
    font:normal 11px helvetica, arial, sans-serif;
    color:#999;
    line-height: 175%;
}

a.footer:link {
    outline:none;
    text-decoration:none;
}

a.footer:visited {
    outline:none;
    text-decoration:none;
}

a.footer:hover {
    text-decoration:underline;
    font-weight:normal;
}
Run Code Online (Sandbox Code Playgroud)

我的网页包括:

<div class="footer">
<a href="http://www.someurl.org"> Page Title 1</a><br />
<a href="http://www.someurl.org/credits_policies.html">Page Title 2</a>
</div>
Run Code Online (Sandbox Code Playgroud)

html css

3
推荐指数
1
解决办法
8055
查看次数

标签 统计

css ×1

html ×1