我试图在 CSS3 中复制这个按钮:
这是 mu CSS 代码:
#banneroverlaping > a:link, #banneroverlaping > a:visited{
color: white;
padding: 5px 5px 5px 5px;
background: #FA733B;
background: -moz-linear-gradient(-45deg, #FA733B 0%, #FA733B 50%, #FF501C 51%, #FF501C 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#FA733B), color-stop(50%,#FA733B), color-stop(51%,#FF501C), color-stop(100%,#FF501C));
background: -webkit-linear-gradient(-45deg, #FA733B 0%, #FA733B 50%,#FF501C 51%,#FF501C 100%);
background: -o-linear-gradient(-45deg, #FA733B 0%, #FA733B 50%,#FF501C 51%,#FF501C 100%);
background: -ms-linear-gradient(-45deg, #FA733B 0%, #FA733B 50%,#FF501C 51%,#FF501C 100%);
background: linear-gradient(135deg, #FA733B 0%, #FA733B 50%,#FF501C 51%,#FF501C 100%);
}
所以我明白了:
如您所见,两种颜色之间的切割不是从角落开始,而是从中心开始。所以我的问题是我如何编码它来复制原始图像???
提前致谢
我使用这个网站建立我的代码