我需要创建这样一个响应式按钮:
http://666kb.com/i/c8fo3yb8fna7ji17u.jpg
我只是想在 css3 中重新创建它,因为当我将它作为图像嵌入时,它没有响应。
但是如你所见,它只有左上角有渐变,那我怎么实现呢?
我使用了多个梯度生成器,但没有一个起作用。
希望你能帮助我。
最佳答案
我找到了这个,效果很好。 http://www.colorzilla.com/gradient-editor/
我有一些代码可以用作模板。
background: #1e5799; /* Old browsers */
background: -moz-linear-gradient(-45deg, #1e5799 0%, #2989d8 50%, #207cca 63%, #7db9e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color-stop(63%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg, #1e5799 0%,#2989d8 50%,#207cca 63%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg, #1e5799 0%,#2989d8 50%,#207cca 63%,#7db9e8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg, #1e5799 0%,#2989d8 50%,#207cca 63%,#7db9e8 100%); /* IE10+ */
background: linear-gradient(135deg, #1e5799 0%,#2989d8 50%,#207cca 63%,#7db9e8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
关于html - CSS3渐变对 Angular 线如何应用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13089238/