How to add a background image to the PHP file

Source: Internet
Author: User
How to add a background image to the php file? I added php to the html file, but the background effect cannot be displayed in the browser (neither can I use css, maybe I won't do it)


Reply to discussion (solution)

Can't I use CSS? Paste your code.

A little confusing. please restore the entire process in detail. How to add php in html?

JavaScript/jquery is used to control the html display effect. html or css is still involved.

Check whether the src of img can read bgimage correctly.

Background-image


The path in php is based on the current execution file address.
Check whether the css call path you call can be run in the current php file.
In addition, make sure that your css is correctly written.

Please write a complete piece of code and take it for me!

Check whether the image path is incorrect!

Firefox is not powerful and cannot be displayed.

PHP downloads images in the CSS file
Http://3aj.cn/php/33.html

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.