Home > Backend Development > PHP Tutorial > 如何在php文件中添加背景图片

如何在php文件中添加背景图片

WBOY
Release: 2016-06-13 13:41:30
Original
4515 people have browsed it

怎么在php文件中添加背景图片
我在html文件中添加php,可是浏览器中不能显示关于背景的效果(用css也不行,或许我不会弄)

------解决方案--------------------
查看img的src是否能正确读取到bgimage。

HTML code

<div>
  <img  src="path/img/01.jpg" alt=" 如何在php文件中添加背景图片 " >
  <p style="background:url('path/img/01.jpg') no-repeat;">background-image</p>
</div> <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template