当它开始加载页面时,我会在它呈现内容之前看到这张图片。
我该如何解决这个问题?
我需要检查什么?
我正在使用 twitter-bootstrap。
有navi、well、fluid。
CSS
body {
min-width: 350px;
padding-top: 50px;
padding-bottom: 50px;
padding-left: 20px;
padding-right: 20px;
background-color: rgb(49, 57, 68);
background-image: linear-gradient(to bottom, rgb(49, 57, 68), rgb(32, 37, 44));
}
最佳答案
添加:
background-repeat: no-repeat;
渐变就像背景图片一样,默认情况下重复是打开的。
PS:你的样式更适合你的导航元素,而不是正文
关于html - 为什么线性渐变不能正常工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14512874/