我目前正在使用这个 ccs:
/* A Free Design by Bryant Smith (bryantsmith.com) */
html, body {
text-align: center;
}
p {text-align: left;}
body {
margin: 0;
padding: 0;
background: #333333 url(images/img01.gif) repeat-x;
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #666666;
background-color:#252F33;
}
*
{
margin: 0 auto 0 auto;
text-align:left;}
#header {
position:relative;
width: 680px;
height:99px;
margin-left:29px;
margin-right:21px;
background: url(header.png) no-repeat;
}
#page
{
margin: 0 auto 0 auto;
display: table;
height: 100%;
position: relative;
overflow: hidden;
background: #252F33 url(background.png) repeat-y;
width: 730px;
}
.title
{
position:relative;
left:30px;
top:22px;
text-align:left;
font-family:Georgia, "Times New Roman", Times, serif;
font-size:32px;
font-weight:normal;
color:#252F33;
}
.subText
{
position:relative;
left:62px;
top:26px;
text-align:left;
font-family:Georgia, "Times New Roman", Times, serif;
font-size:12px;
font-weight:bold;
color:#CEEAEE;
}
.articleTitle
{
text-align:left;
padding-left:25px;
padding-top:10px;
padding-bottom:10px;
color: #2C4969;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:24px;
font-weight:bold;
}
.articleContent
{
width:auto;
position:relative;
padding-left:50px;
padding-right:75px;
color:#101214;
text-align:left;
font-family:Arial, Helvetica, sans-serif;
line-height:18px;
}
.rightLinks
{
width: 102px;
font-size:11px;
font-weight:bold;
line-height:21px;
height:auto;
margin-right:-3px;
background-image:url(links_branch.png);
background-repeat:no-repeat;
text-align:right;
float:right;
}
.rightLinks a:hover
{
color:#667765;
}
.rightLinks .linkTitle
{
font-size:13px;
font-weight:bold;
margin-top:27px;
margin-bottom:32px;
margin-right:5px;
}
#bar
{
position:relative;
width: 680px;
height:57px;
margin-left:29px;
margin-right:21px;
background: url(bar.png) no-repeat;
}
.menuLink
{
height:36px;
width: 120px;
text-align:center;
float:left;
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
color:#252F33;
padding-top:19px;
}
.menuLink:hover
{
background: url(bar2.png) repeat-x;
}
a
{
text-decoration:none;
color:#252F33;
}
#pageContent
{
width: 680px;
height:500px;
}
#footer {
width: 730px;
height:60px;
background: url(footer.png) no-repeat;
text-align:center;
font-size:10px;
color:#667765;
padding-top:34px;
}
#footer a
{
font-size:10px;
color:#667765;
}
html, body {
text-align: center;
}
p {text-align: left;}
我想改变超链接的颜色。我在这里尝试了建议:http ://www.ssi-developer.net/css/link-colours.shtml包含此代码:
<style type="text/css">
<!--
a:link {color: #000000; text-decoration: underline; }
a:active {color: #0000ff; text-decoration: underline; }
a:visited {color: #008000; text-decoration: underline; }
a:hover {color: #ff0000; text-decoration: none; }
-->
</style>
但包括代码改变了字体和边距。如何更改我正在使用的 css 以更改超链接颜色而不更改字体或边距?