Background Image and background color, background color
I encountered some problems in the input box yesterday. Let's give it a try first. The source code is as follows: # search-input {border: none; border-radius: 6px; height: 35px; width: 62%; margin-left: 3%; margin-right: 3%; font-size: 0.9rem; font-weight: 600; text-align: center; background-color: # d7d7d9; background: url (.. /images/search.png) no-repeat 3% center; background-size: 17px; padding: 0 8%;} analysis: the background color is lost, and the Forum is turned over, it is found that the writing of the background is very important. If you want to have a background image and a background color, you need to pay attention to the writing. If you set the background color and then the background image, the background color will be overwritten by the background image. You can write it as follows: background: # d7d7d9 url (../images/search.png) no-repeat 3% center. The effect is as follows.