Javascript 使用css属性“;过滤器:α(不透明度=70)&引用;及;背景图片:url(image.png)&引用;在输入框上

Javascript 使用css属性“;过滤器:α(不透明度=70)&引用;及;背景图片:url(image.png)&引用;在输入框上,javascript,css,filter,background-image,opacity,Javascript,Css,Filter,Background Image,Opacity,可以让两者单独工作,但我无法让它们一起工作。这是在windows边栏小工具中使用的 表格: 我认为您需要“背景色”,因为现在它是“透明的”,您可能可以使用: background-color: #fff; 谢谢!除此之外,其他属性工作得非常好: #phonebook.focus { background-color: #fff; background-image: url(images/searchBack.png); background-repeat: no-repe

可以让两者单独工作,但我无法让它们一起工作。这是在windows边栏小工具中使用的

表格:

我认为您需要“背景色”,因为现在它是“透明的”,您可能可以使用:

background-color: #fff;

谢谢!除此之外,其他属性工作得非常好:

#phonebook.focus
  {
   background-color: #fff;
   background-image: url(images/searchBack.png);
   background-repeat: no-repeat;
   width: 124px;
   height: 16px;
   position: relative;
  }
#phonebook.blur
  {
   background-color: #fff;
   background-image: url(images/searchBackW.png);
   background-repeat: no-repeat;
   width: 124px;
   height: 16px;
   position: relative;
  }
background-color: #fff;
#phonebook.focus
  {
   background-color: #fff;
   background-image: url(images/searchBack.png);
   background-repeat: no-repeat;
   width: 124px;
   height: 16px;
   position: relative;
  }
#phonebook.blur
  {
   background-color: #fff;
   background-image: url(images/searchBackW.png);
   background-repeat: no-repeat;
   width: 124px;
   height: 16px;
   position: relative;
  }