グラデーションの背景が交互に繰り返されるようにする方法はありますか?私は、次のCSS持っている現時点では:CSS:直線的なグラデーションを逆に繰り返す
html {
background: white; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(blue, white); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(blue, white); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(blue, white); /* For Firefox 3.6 to 15 */
background: linear-gradient(blue, white); /* Standard syntax */
background-size: cover;
height: 100%;
}
body {
height: 100%;
}
<html>
<head>
</head>
<body
Hello world
</body>
</html>
を現在それが青から白のトップへ下へ行くが、私はスクロールダウンすると、それが青から白の例:再び繰り返されます。 blue->white; blue->white; blue->...
。私はそれがblue -> white -> blue -> white ->...
から行くことを望みます。
背景ような何かではない理由:線形グラデーション(青、白、青)。これから調整しますか? –
これは似たようなものです。私はあなたがその背景を持っていることを理解していますし、ある行動では逆効果を望んでいますね。 http://stackoverflow.com/questions/19318534/inheriting-the-inverse-gradient-of-theelements-background –