我有一个名为 'Core.css' 的文件,其中定义了网站的页面背景图像以及主题。但是对于特定的页面,我只想更改背景。有没有建议可以在单独的CSS文件中实现这一点?
该页面的HTML代码为:
<head>
<link rel="stylesheet" type="text/css" href="core.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
core.css 定义了:
body
{
background-image: url('bg.png');
}
index.css 定义了:
body
{
background-image:('homeBg.png');
}
感谢!