+ Reply to Thread
Results 1 to 8 of 8

Thread: 上传的网页图片无法显示

  1. #1
    Junior Member orchidisland is on a distinguished road
    Join Date
    Jun 2010
    Posts
    4

    上传的网页图片无法显示

    上传了网页,打开后图片无法显示。是否相对路径有问题?我在File Manager里,图片置于img;文件置于domains/yourdomain.com/public_html/,在这里public_htmld的index.html打开后显示正常。请问会是什么问题?还是我其他方面设置有问题?谢了先。

  2. #2
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 上传的网页图片无法显示

    呃~ 可以贴出下出问题的网页地址么?
    举报滥用

    get help from online chat(免注册在线聊天)

    host1free使用说明 用Ctrl+F更快找到信息 QQ群:71538943

    QQ International


    QQ IM Group of host1free:71538943

  3. #3
    Junior Member orchidisland is on a distinguished road
    Join Date
    Jun 2010
    Posts
    4

    Re: 上传的网页图片无法显示

    Quote Originally Posted by flasherwade
    呃~ 可以贴出下出问题的网页地址么?
    http://www.orchidisland.info/

  4. #4
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 上传的网页图片无法显示

    你好~
    使用file:///D|/mysitestyle.css和file:///D|/Img/index-services.jpg这样的地址是看不到图片的
    请使用相对路径
    举报滥用

    get help from online chat(免注册在线聊天)

    host1free使用说明 用Ctrl+F更快找到信息 QQ群:71538943

    QQ International


    QQ IM Group of host1free:71538943

  5. #5
    Junior Member orchidisland is on a distinguished road
    Join Date
    Jun 2010
    Posts
    4

    Re: 上传的网页图片无法显示

    Quote Originally Posted by flasherwade
    你好~
    使用file:///D|/mysitestyle.css和file:///D|/Img/index-services.jpg这样的地址是看不到图片的
    请使用相对路径
    你好!我不知道具体错在哪里。能不能帮我指出?再次感谢。

  6. #6
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 上传的网页图片无法显示

    举报滥用

    get help from online chat(免注册在线聊天)

    host1free使用说明 用Ctrl+F更快找到信息 QQ群:71538943

    QQ International


    QQ IM Group of host1free:71538943

  7. #7
    Member robisozo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    56

    Re: 上传的网页图片无法显示

    file:///指定的是计算机内的路径而非网络路径。网络路径需要http://之类的前缀。
    当然也有缩写如/images/banner.gif之类的,缩写是不区分本地或网络的。
    /表示网站根目录(即这里的/public_html/目录,具体的可以查看PHP中$_SERVER['DOCUMENT_ROOT']的值),./表示当前目录,../表示上一级目录。这是规范了,熟悉就好。

  8. #8
    Member robisozo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    56

    Re: 上传的网页图片无法显示

    另外,您其他的路径也要修改噢。所有链接都要修改成上述形式才可在网络中工作。

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34