Background Image and background color, background color

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.