【发布时间】:2016-02-11 20:48:39
【问题描述】:
请看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;
}
【问题讨论】:
-
请始终在您的问题中包含相关代码。外部链接很棒,但如果它们不复存在,您的问题应该对其他人仍然有用。
标签: css css-shapes linear-gradients