html - CSS3渐变对 Angular 线如何应用?

标签 html css button gradient

我需要创建这样一个响应式按钮:

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/

相关文章:

javascript - 如何在 React Native 中按下时更改多个按钮的颜色

javascript - 使用 AJAX 加载另一个工作按钮

html - 将 .field-item 图像 float 到内容类型的左侧而不是在 Drupal 中将其居中

jquery - 为什么子链接不起作用?

html - Bootstrap 网格不居中?我究竟做错了什么

html - 放置另一个 div 后下拉菜单不起作用

css - 全尺寸背景图像 : <img> fallback for accessibility and print

php - 为 WooCommerce 中的特定产品类别自定义 "Add to cart"按钮

frameworks - WebGL框架

html - 为什么过渡不适用于绝对定位的图像?