问题描述
我添加背景:透明;
来的表单字段,但是也包括我试图附加图像。当我使用只是形象,我看到的是普通表单字段。本场本身就像是一个粗略的下划线,所以这就是为什么我需要的图像与CSS样式。任何人都可以请帮助?
I added background: transparent;
to the form field, however that also includes the image I'm trying to attach. When I use just the image, all I see is the regular form field. The field itself is like a sketchy underline, so that's why I need the image versus CSS styling. Can anyone please help?
感谢您!
*更新!我不能让我的图像显示出来,因为我还没有设置在球场上本身的高度/宽度。但是,下划线显示出来。图像本身是透明PNG,但输入字段的白色背景仍然存在。谁能告诉我如何让它透明,顶部的一个PNG?
*Update! I couldn't get my images to show up because I hadn't set the height / width on the field itself. But the underline is showing up. The image itself is a transparent png, but the white background of the input field still persists. Can anyone tell me how to make it transparent with the png on top?
推荐答案
尝试
background-image:url(xxx.png);
border:none;
background-color:transparent;
不仅背景
这篇关于我怎样才能让我的表单字段有一个背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!