小编Man*_*dar的帖子

css三角形箭头的渐变

请看http://jsfiddle.net/ghAgQ/ 我需要箭头的相同渐变,就像矩形一样.任何想法如何做到这一点?谢谢

.rectangle {
background-color: #EEE;
height: 80px;
width: 240px;
border: 1px solid #CCC;
background: white;
cursor: pointer;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,white),             color-stop(37%,#F1F1F1), color-stop(57%,#E1E1E1), color-stop(100%,#F6F6F6));
float: left;
}

.arrow {

border-top: 41px solid transparent;
border-bottom: 41px solid transparent;
border-left: 15px solid #C4C4C4;
float: left;
cursor: pointer;

}
Run Code Online (Sandbox Code Playgroud)

css linear-gradients css-shapes

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

css-shapes ×1

linear-gradients ×1