有没有办法让这条径向渐变线更暗?

时间:2017-02-01 23:54:14

标签: css css3 radial-gradients

即使它是黑色的,它也显示为浅灰色。我不希望这些点更大。

https://jsfiddle.net/bek17q3t/1/

body,html
{
  background-color: #e7e6e6;
  height: 100%;
}
div
{
  position: relative;
  top: 10px;
  left: 30px;
  width: .25em;
  height: 100%;
  background-image: radial-gradient(circle closest-side,#000000 calc(100% - .25em),transparent 100%);
  background-repeat: repeat-y;
  background-size: .25em .75em;
}

1 个答案:

答案 0 :(得分:2)



body,html
{
  background-color: #e7e6e6;
  height: 100%;
}
div
{
  position: relative;
  top: 10px;
  left: 30px;
  width: .25em;
  height: 100%;
  background-image: radial-gradient(circle closest-side,#000000 calc(100% - .1em),transparent 100%);
  background-repeat: repeat-y;
  background-size: .25em .75em;
}

<div>
  </div>
&#13;
&#13;
&#13;

更改计算。