【问题标题】:Can i Show Image without extension我可以显示没有扩展名的图像吗
【发布时间】:2017-12-02 09:50:58
【问题描述】:

让我知道我是否可以制作这样的图片网址 http://placehold.it/1000/1000 除了这个 https://i.ytimg.com/vi/sXAwqoJ-WUA/maxresdefault.jpg

简而言之,我想将图片链接 (https://i.ytimg.com/vi/sXAwqoJ-WUA/maxresdefault.jpg) 更改为我的站点目录 (mysite.com/images/one)

编辑:这与其他问题不重复,因为我想在图像不在我的服务器上时执行此操作。

【问题讨论】:

  • 将文件存储在你的服务器上并使用apache的mod_rewrite
  • 但这在我的服务器上图像时是可能的。我想用 youtube thumb url 来做到这一点 - fbthumbtube.com 人们可以使用大拇指但图像不在我的服务器中。

标签: php jquery css image


【解决方案1】:

是的,您可以这样做,因为您必须创建一个 html 文件,并在“index.html”中将图像插入图像标签。

 <!DOCTYPE html>

<html>

<head>

<title> images </title>

</head>

<body>

<img src="http://placehold.it/1000/1000 " style="max-width: 100%">

</body>

</html>

文件位置 mysite.com/images/one/index.html
并运行您的链接 mysite.com/images/one

【讨论】:

    猜你喜欢
    • 2011-07-03
    • 1970-01-01
    • 1970-01-01
    • 2015-11-15
    • 1970-01-01
    • 2016-04-26
    • 1970-01-01
    • 2011-10-27
    • 1970-01-01
    相关资源
    最近更新 更多