我正在使用Overhang在我的主页上显示通知,并且我希望与顶部保持一定的偏移量,因为我将Bootstrap与固定的导航栏一起使用,并且只希望导航栏下方的突出显示消息
我发现了这个问题: Overhang notification at bottom of the screen
其中讨论了更改Overhang的CSS,并尝试将 top:10 添加到CSS,但是整个Overhang通知消失了。基本上是除零以外的所有数字。
.overhang-overlay{position:fixed;top:10;left:0;right:0}
我在做什么错?还是可能是因为Bootstrap?
谢谢!
答案 0 :(得分:0)
似乎无法覆盖该属性。
您可以执行以下操作:
body .overhang,
body .overhang-overlay {
top: 10;
}
或者您可以简单地使用!important
来确保它覆盖默认属性
.overhang-overlay {
top: 10 !important;
}