1.設定input背景透明:

background:rgba(255,255,255,0.1);

前面三個引數為對應的rgb數值,第四個引數為透明度:0~1,0:透明,1:不透明;

2.設定input的placeholder字型顏色和大小:

#myInput::-webkit-input-placeholder{
font-size:16px;
color: #ffffff;
}

3.效果展示: