我想做一条如下所示的垂直线:
http://i41.tinypic.com/2na44n7.png
我试过以下代码:
div.vertical-line{
float:right;
width:5px;
background-color:black;
margin-right:20px;
background: #FFFFFF;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#FFFFFF), to(#CFCFCF));
background: -webkit-linear-gradient(#FFFFFF, #CFCFCF);
background: -moz-linear-gradient(#FFFFFF, #CFCFCF);
background: -ms-linear-gradient(#FFFFFF, #CFCFCF);
background: -o-linear-gradient(#FFFFFF, #CFCFCF);
background: linear-gradient(#FFFFFF, #CFCFCF);
-pie-background: linear-gradient(#FFFFFF, #CFCFCF);
behavior: url(/pie/PIE.htc);
}
但结果并不如预期。这是结果:http: //jsfiddle.net/rLyyc/
它很接近,但它不会在行尾“淡出”。
有什么建议么?
提前致谢!