Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 溢出时CSS背景渐变重复_Html_Css - Fatal编程技术网

Html 溢出时CSS背景渐变重复

Html 溢出时CSS背景渐变重复,html,css,Html,Css,我使用渐变作为背景,它一直延伸到页面的末尾,但是在滚动/溢出之后,它开始重复。即使在滚动之后,如何将渐变延伸到页面底部 html { height:100%; width:100%; } body { margin:0; padding:0; width:100%; height:100%; min-height:100%; background-repeat:no-repeat; background-attac

我使用渐变作为背景,它一直延伸到页面的末尾,但是在滚动/溢出之后,它开始重复。即使在滚动之后,如何将渐变延伸到页面底部

    html
{
    height:100%;
    width:100%;
}

body
{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    min-height:100%;
    background-repeat:no-repeat;
    background-attachment: fixed;

background: rgb(242,245,246); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(242,245,246,1) 0%, rgba(227,234,237,1) 37%, rgba(200,215,220,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,245,246,1)), color-stop(37%,rgba(227,234,237,1)), color-stop(100%,rgba(200,215,220,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */

}

在实际的
正文
之后,将其放入单独的
正文
调用中:

body {
    background-attachment: fixed
    background-repeat:no-repeat;
}
您的css需要如下所示:

    html
{
    height:100%;
    width:100%;
}

body
{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    min-height:100%;



background: rgb(242,245,246); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(242,245,246,1) 0%, rgba(227,234,237,1) 37%, rgba(200,215,220,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,245,246,1)), color-stop(37%,rgba(227,234,237,1)), color-stop(100%,rgba(200,215,220,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */

}

body {
        background-attachment: fixed;
        background-repeat:no-repeat;
    }
由于订单原因


在实际的
正文
之后,将其放入单独的
正文
调用中:

body {
    background-attachment: fixed
    background-repeat:no-repeat;
}
您的css需要如下所示:

    html
{
    height:100%;
    width:100%;
}

body
{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    min-height:100%;



background: rgb(242,245,246); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(242,245,246,1) 0%, rgba(227,234,237,1) 37%, rgba(200,215,220,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,245,246,1)), color-stop(37%,rgba(227,234,237,1)), color-stop(100%,rgba(200,215,220,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(242,245,246,1) 0%,rgba(227,234,237,1) 37%,rgba(200,215,220,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */

}

body {
        background-attachment: fixed;
        background-repeat:no-repeat;
    }
由于订单原因


您似乎未订购一些CSS属性。请看这一节

background-repeat:no-repeat;
background-attachment: fixed;
background: rgb(242,245,246); /* Old browsers */
您已在short hand
background
属性之前指定了长手属性
background repeat
background attachment
。读取
background
属性时,它将重置以前设置的所有背景属性

只需将它们移动到其他背景属性下,就可以了

html
{
身高:100%;
宽度:100%;
}
身体
{
保证金:0;
填充:0;
宽度:100%;
身高:100%;
最小高度:100%;
背景:rgb(242245246);/*旧浏览器*/
背景:-莫兹线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*FF3.6+*/
背景:-webkit渐变(线性,左上,左下,颜色停止(0%,rgba(242245246,1)),颜色停止(37%,rgba(227234237,1)),颜色停止(100%,rgba(200215220,1));/*铬,Safari4+*/
背景:-webkit线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Chrome10+,Safari5.1+*/
背景:-o-线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Opera 11.10+*/
背景:-ms线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*IE10+*/
背景:线性梯度(到底部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*W3C*/
过滤器:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f5f6',endColorstr='#c8d7dc',GradientType=0);/*IE6-9*/
背景重复:无重复;
背景附件:固定;
}
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话

诸如此类
您似乎没有订购一些CSS属性。请看这一节

background-repeat:no-repeat;
background-attachment: fixed;
background: rgb(242,245,246); /* Old browsers */
您已在short hand
background
属性之前指定了长手属性
background repeat
background attachment
。读取
background
属性时,它将重置以前设置的所有背景属性

只需将它们移动到其他背景属性下,就可以了

html
{
身高:100%;
宽度:100%;
}
身体
{
保证金:0;
填充:0;
宽度:100%;
身高:100%;
最小高度:100%;
背景:rgb(242245246);/*旧浏览器*/
背景:-莫兹线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*FF3.6+*/
背景:-webkit渐变(线性,左上,左下,颜色停止(0%,rgba(242245246,1)),颜色停止(37%,rgba(227234237,1)),颜色停止(100%,rgba(200215220,1));/*铬,Safari4+*/
背景:-webkit线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Chrome10+,Safari5.1+*/
背景:-o-线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Opera 11.10+*/
背景:-ms线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*IE10+*/
背景:线性梯度(到底部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*W3C*/
过滤器:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f5f6',endColorstr='#c8d7dc',GradientType=0);/*IE6-9*/
背景重复:无重复;
背景附件:固定;
}
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话
废话

blah
您可以从
html
中删除
高度:100%

html
{
宽度:100%;
}
身体
{
保证金:0;
填充:0;
宽度:100%;
身高:100%;
最小高度:100%;
背景重复:无重复;
背景附件:固定;
背景:rgb(242245246);/*旧浏览器*/
背景:-莫兹线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*FF3.6+*/
背景:-webkit渐变(线性,左上,左下,颜色停止(0%,rgba(242245246,1)),颜色停止(37%,rgba(227234237,1)),颜色停止(100%,rgba(200215220,1));/*铬,Safari4+*/
背景:-webkit线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Chrome10+,Safari5.1+*/
背景:-o-线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*Opera 11.10+*/
背景:-ms线性梯度(顶部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*IE10+*/
背景:线性梯度(到底部,rgba(242245246,1)0%,rgba(227234237,1)37%,rgba(200215220,1)100%);/*W3C*/
过滤器:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f5f6',endColorstr='#c8d7dc',GradientType=0);/*IE6-9*/
}

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

废话

基本法