图像路径 [英] image path
本文介绍了图像路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用相对图像路径时
const imgDir =" _images / divisions /"
相对路径转换为img标签中的物理路径
as
< img src =" c:\app\_images \ divivisions \ myypicture.gif">
如何防止将其转换为物理路径?
when using a relative image path
const imgDir = "_images/divisions/"
the relative path is converted to a physical path in an img tag
as
<img src="c:\app\_images\divisions\mypicture.gif">
how can I prevent this from being converted to a physical path ?
推荐答案
你是什么编辑器使用?
-
Jason Brown
Microsoft GTSC,IIS
发布该帖子按现状没有保证,也没有赋予
权利。
TJS <无**** @ here.com>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
what editor are you using?
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"TJS" <no****@here.com> wrote in message
news:10*************@corp.supernews.com...
使用相对图片路径时
const imgDir =" _images / divisions /"
相对路径转换为img标签中的物理路径
< ; img src =" c:\app\_images \divisions\mypicture.gif">
如何防止将其转换为物理路径?
when using a relative image path
const imgDir = "_images/divisions/"
the relative path is converted to a physical path in an img tag
as
<img src="c:\app\_images\divisions\mypicture.gif">
how can I prevent this from being converted to a physical path ?
textpad
" Jason Brown [MSFT]" < I - ****** @ online.microsoft.com>在消息中写道
新闻:e3 ************** @ TK2MSFTNGP09.phx.gbl ...
textpad
"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
你在用什么编辑器?
-
Jason Brown
微软GTSC,IIS
这个帖子是原样提供的。没有保证,也没有赋予
权利。
TJS <无**** @ here.com>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
what editor are you using?
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"TJS" <no****@here.com> wrote in message
news:10*************@corp.supernews.com...
使用相对图像路径时
const imgDir =" _images / divisions /"
相对路径转换为img标签中的物理路径
< img src = c:\app\_images\divisions\mypicture.gif">
如何防止将其转换为物理路径?
when using a relative image path
const imgDir = "_images/divisions/"
the relative path is converted to a physical path in an img tag
as
<img src="c:\app\_images\divisions\mypicture.gif">
how can I prevent this from being converted to a physical path ?
嗯......那么如果你在普通的'ol记事本中创建一个类似的页面呢?我不熟悉textpad,但是你的问题听起来好像编辑器正在输入一个
文件系统路径而你没想到它。
-
Jason Brown
Microsoft GTSC,IIS
权利。
TJS <无**** @ here.com>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
hmmm... so what if you create a similar page in plain ''ol notepad? I''m not
familiar with textpad, but your issue sounds like the editor is inputting a
filesystem path and you''re not expecting it to.
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"TJS" <no****@here.com> wrote in message
news:10*************@corp.supernews.com...
textpad
Jason Brown [MSFT]" < I - ****** @ online.microsoft.com>在消息中写道
新闻:e3 ************** @ TK2MSFTNGP09.phx.gbl ...
textpad
"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
你在用什么编辑器?
-
Jason Brown
微软GTSC,IIS
这篇文章是原样提供的。没有保证,也没有赋予
权利。
TJS <无**** @ here.com>在消息中写道
新闻:10 ************* @ corp.supernews.com ...
what editor are you using?
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"TJS" <no****@here.com> wrote in message
news:10*************@corp.supernews.com...
使用相对图像路径时
const imgDir =" _images / divisions /"
相对路径转换为img标签中的物理路径
< img src = c:\app\_images\divisions\mypicture.gif">
如何防止将其转换为物理路径?
when using a relative image path
const imgDir = "_images/divisions/"
the relative path is converted to a physical path in an img tag
as
<img src="c:\app\_images\divisions\mypicture.gif">
how can I prevent this from being converted to a physical path ?
这篇关于图像路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文