抱歉,标题可能不清楚,而且我的英语水平很差。我在 Firefox 上使用 Stylus 扩展。我想从网站 Jyväskylä yliopisto Moodle 重新设计一个网页但我需要一些帮助。
背景图片来自外部 CSS 样式表,我想在一个页面上覆盖背景。我想使用白色作为背景而不是背景图像。我怎样才能改变背景?从技术上讲这应该很容易,但是这个 CSS 样式表对我来说非常不清楚而且太复杂了。
可以找到 CSS 样式表 here .
通用背景是/theme/image.php/maisteriboost/theme/1566995618/dashboard_bg
可能是这样的:
SOMETHING {
background-color: white !important);
}
但那是什么东西?我试过这个:
#dash-page-bg {
background-color: white !important;
}
还有这个:
.popover-region-toggle::before#dash-page-bg {
background-color: white !important;
}
但是这些都不起作用。
最佳答案
我会尝试为背景添加内联样式。 style="背景:白色"
我的猜测是通用背景可能在您的样式之后加载,并且可能导致它被覆盖。
关于html - 在 Stylus 扩展中的一页覆盖来自外部 CSS 样式表的通用背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57838581/