是否可以同时将背景图像和背景颜色应用于文本字段。
我试图实现的是:在文本字段的右上角显示一个图标。还使用样式使该文本字段有点渐变
背景:-moz-linear-gradient(center bottom, white, #D6E5F4) repeat scroll 0 0 transparent
谢谢
最佳答案
是的;你可以同时应用颜色和图像。你必须这样写:
background: url("image.png") no-repeat 0 0,-moz-linear-gradient(center bottom , white, #D6E5F4);
关于html - 同时应用渐变背景颜色和图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7792494/