【发布时间】:2012-08-30 11:36:48
【问题描述】:
我知道处理文件/目录路径的正确方法是使用Path.AltDirectorySeparatorChar,但这是否适用于 html 源路径?
或者,是否反斜杠是 html 所需的路径分隔符?我一直使用反斜杠(即<img src="images\birthdaysurprise.jpg" />)来完成它,但现在我想知道我是否一直在做不正确的事情?
【问题讨论】:
-
URI 应始终使用正斜杠“/”en.wikipedia.org/wiki/URI_scheme
-
@JTorres:好吧,我一开始就做错了。
标签: c# html path imagesource path-separator