How do you make an input field opacity not effect the text color inside it?

前端 未结 4 384
孤独总比滥情好
孤独总比滥情好 2021-01-11 09:51

I have a dark/black background image and a white input field. I gave the input field an opacity of 50% and I want the text/value to be solid white(#fff). BUT when I apply th

4条回答
  •  隐瞒了意图╮
    2021-01-11 10:20

    Why not simply make a half-transparent png and use that as background image instead of setting the input opacity? Or if you don't have to support IE8- you can also use rgba().

提交回复
热议问题