如何指定 div 中颜色渐变的开始位置。
我有以下渐变:
style="background: linear-gradient(to bottom, white,#B8DBFF)
我希望 div 从顶部到大约 200px 向下是纯白色的,然后从该点开始渐变。
background: linear-gradient(to bottom, #ffffff 0%,#ffffff 200px,#b8dbff 100%);
示例:http: //jsfiddle.net/CEFkZ/
(我使用了这个梯度生成器)