gpt4 book ai didi

html - css 中损坏的相对 URL

转载 作者:行者123 更新时间:2023-11-28 13:29:14 24 4
gpt4 key购买 nike

在来自外部元素的每个 css 中,我必须像这样替换 url:

url(image.jpg)

url(../image.jpg)

也许这与我必须包含带有尾部斜线的 css 的方式有关:

<link rel="stylesheet" type="text/css" href="/project1/style.css/"  th:href="@{ /project1/style.css/ }" />

最佳答案

你不需要包含额外的/

试试这个:

<link rel="stylesheet" type="text/css" href="/css/style.css"   th:href="@{ /css/style.css }" />

关于html - css 中损坏的相对 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12473677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com