Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在位于此处的 css 文件中包含背景图像:
public_html/css/文件夹/style.css
并且图像位于
public_html/img/image.png
我尝试使用
background: url("../img/image.png");
我怎样才能得到那个图像?
谢谢
您必须在目录结构中执行 2 个步骤:
background: url("../../img/image.png");