V2EX  ›  英汉词典
Enqueued related words: Root-relative URL

Relative URL

定义 Definition

相对 URL:一种不包含完整域名(协议、主机名等)的网页地址写法,只根据“当前页面的位置”来定位资源路径。常见于网站内部链接与静态资源引用。(相对的概念是 absolute URL 绝对 URL。)

发音 Pronunciation (IPA)

/ˈrɛlətɪv ˌjuːˈɑːrˈɛl/

例句 Examples

The image is linked with a relative URL like images/logo.png.
图片用相对 URL(如 images/logo.png)来链接。

If the base page moves to another folder, the same relative URL may point to a different file unless you update the path.
如果基准页面移动到另一个文件夹,同一个相对 URL 可能会指向不同文件,除非你更新路径。

词源 Etymology

Relative 来自拉丁语 relativus,表示“有关联的、相对于……的”;URLUniform Resource Locator(统一资源定位符)的缩写。合起来 relative URL 指“相对于当前文档/基准地址来解析的 URL”。

相关词 Related Words

文献与作品 Literary Works

  • HTML and CSS: Design and Build Websites(Jon Duckett)
  • HTTP: The Definitive Guide(David Gourley & Brian Totty 等)
  • W3C 规范:URL Standard(WHATWG)与 HTML Living Standard(涉及相对 URL 解析规则)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1324 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 17:19 · PVG 01:19 · LAX 10:19 · JFK 13:19
♥ Do have faith in what you're doing.