我有一个使用 2 css的站点: 一个全局,一个页面特定。
默认情况下,我希望为所有内容设置字体类型和大小,并根据某些页面上的需要调整它的大小。
所以我有:
global.css* {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
html {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0px;
}
p {
text-align:justify;
margin:0px;
margin-bottom:10px;
}
a:link {
color: #993300;
text-decoration: none;
}
a:visited {
color:#993300;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: underline overline;
}
news.cssdiv.news{
width: 100%;
}
.news p.reminder {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #848484;
margin:0px;
margin-bottom:20px;
text-align: center;
position: relative;
top: -10px;
text-transform: uppercase;
}
.news p.reminder a:link,. news p.reminder a:visited {
color: #848484;
}
.news p.reminder a:hover {
}
html文件
the title因为我没看到,那部分:.news p.reminder {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
未考虑到。
如果我从 global.css, 中删除 * 定义,就可以了。 但如果我保留它那部分就不会覆盖它。
我如何才能使这项工作工作?