在驱动器上发布带有图像的静态网站 [英] publish static website with images on drive

查看:71
本文介绍了在驱动器上发布带有图像的静态网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个问题要问,一个是如何在google驱动器上正确发布我的网站,以便我可以给公司中的人一个链接,他们可以很好地查看该网页,两个是其唯一的index.html和javascript带有一些图像,所以我知道它会工作,因为它不需要php或任何类型的sql,但是我的问题是图像是通过使用背景url属性通过css中的相对路径生成的,图像现在将在驱动器上,但是我无法找到获取这些图像的绝对链接的方法,因此我可以在我的代码中使用它,有什么想法吗?

I have 2 questions to ask, one is how can I publish my website correctly on google drive so I can give people in my company a link and they can view the webpage perfectly fine,two is its only 1 index.html and abit of javascript with some images, so I know it will work because it does not require php or any type of sql, but my issue is in terms of the images that are generated through a relative path in css using background url attribute, the images will now be on drive but I am unable to find a way to get absolute links of those images so i can use that in my code instead, any ideas?

推荐答案

您可以在Google驱动器中创建一个新文件夹,然后将所有图像放在该文件夹中,并公开共享该文件夹.

you can create a new folder in your google drive and put all your images in that folder, share that folder publically.

您可以浏览该文件夹中的图片,例如googledrive.com/host/your_public_folder_id/your_imgage_name.jpg

You can browse the image inside that folder like googledrive.com/host/your_public_folder_id/your_imgage_name.jpg

这篇关于在驱动器上发布带有图像的静态网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆