同时应用渐变背景颜色和图像 [英] Apply Gradient background color and image at the same time
本文介绍了同时应用渐变背景颜色和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以同时将背景图像和背景颜色应用于文本字段。
Is it possible to apply background-image and background-color to a text field at the same time.
我试图实现的是:显示图标在文本字段的右上角。此外,使用样式使文本字段有点渐变
What I was trying to achieve is : Show an icon at the right corner of text field. Also Make that text field a little bit gradient using the style
background:-moz-linear-gradient(center bottom,white,#D6E5F4)重复滚动0 0透明
谢谢
Thanks
推荐答案
是;你可以应用颜色和颜色。您必须这样写:
yes; you can apply color & image at same time .You have to write like this:
background: url("image.png") no-repeat 0 0,-moz-linear-gradient(center bottom , white, #D6E5F4);
检查 http://jsfiddle.net/sandeep/7yMhX/
这篇关于同时应用渐变背景颜色和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文